Bug 74949 - Quanta table wizard crash after entering table properties
Summary: Quanta table wizard crash after entering table properties
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 13:59 UTC by drac
Modified: 2004-02-25 15:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description drac 2004-02-11 13:59:18 UTC
Version:           3.2.0 (using KDE 3.2.0, SuSE)
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:          Linux (i686) release 2.6.0-1-default

Quanta crashes after adding width, border, cell spacing and cell padding properties in table wizard. Creating table without these properties works fine.
Comment 1 marazm 2004-02-12 08:48:37 UTC
Reproducable - if enter only 1 of those parameters - works fine. If enter two or more - crash.

No messages in console;
Backtrace:
(no debugging symbols found)...0x418bb477 in waitpid ()
   from /lib/libpthread.so.0
#0  0x418bb477 in waitpid () from /lib/libpthread.so.0
#1  0x40e06ba1 in KCrash::defaultCrashHandler(int) ()
   from /opt/kde/lib/libkdecore.so.4

Comment 2 AP Fritts 2004-02-16 15:06:22 UTC
I had the same problem.

Just created a table, inserted a few rows and columns, then I click table properties, entered the properties and clicked OK, then it crashed.  Here is the debug info I received:

(removed other "no bugging symbols found" before this)

(no debugging symbols found)...0x00106c32 in _dl_sysinfo_int80 ()
   from /lib/ld-linux.so.2
#0  0x00106c32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x003b2963 in __waitpid_nocancel () from /lib/tls/libpthread.so.0
#2  0x067bd3d1 in KCrash::defaultCrashHandler(int) ()
   from /usr/lib/libkdecore.so.4
Comment 3 András Manţia 2004-02-25 15:55:14 UTC
CVS commit by amantia: 

Don't crash when setting table/body/header/footer attributes for newly created tables [#74949]

CCMAIL: 74949-done@bugs.kde.org


  M +1 -0      ChangeLog   1.218
  M +4 -0      components/tableeditor/tableeditor.ui.h   1.38


--- kdewebdev/quanta/ChangeLog  #1.217:1.218
@@ -16,4 +16,5 @@
         - don't crash the CSS editor on invalid CSS
         - don't crash the table editor on invalid nested tables
+        - don't crash when setting table/body/header/footer attributes for newly created tables [#74949]
         - various parsing fixes        
         - report bugs for "quanta" module, not for "quanta_be"        

--- kdewebdev/quanta/components/tableeditor/tableeditor.ui.h  #1.37:1.38
@@ -832,13 +832,17 @@ void TableEditor::createNewTable(Documen
   m_dtd = dtd;
   m_table = new Tag();
+  m_table->dtd = m_dtd;
   newNum++;
   m_table->parse("<table>", m_write);
   m_thead = new Tag();
+  m_thead->dtd = m_dtd;
   newNum++;
   m_thead->parse("<thead>", m_write);
   m_tfoot = new Tag();
+  m_tfoot->dtd = m_dtd;
   newNum++;
   m_tfoot->parse("<tfoot>", m_write);
   m_tbody = new Tag();
+  m_tbody->dtd = m_dtd;
   newNum++;
   m_tbody->parse("<tbody>", m_write);