KDE Bug Tracking System
Home
Report New Wish or Bug
Query Existing Reports
First
Last
Prev
Next
No search results available
Search page
Bug
138760
:
Crash on loading of file with basic labeledtr
P
roduct
:
kformula
Co
m
ponent
:
general
Status
:
RESOLVED
Resolution
:
FIXED
Target
:
---
Version
:
1.6.1
Pr
i
ority
:
NOR
Severity
:
crash
V
otes
:
0
Description
:
Opened:
2006-12-13 17:42
Last Changed:
2007-01-02 18:01:15
Version: 1.6.1 (using KDE 3.5.5, Kubuntu (edgy) 4:3.5.5-0ubuntu3) Compiler: Target: x86_64-linux-gnu OS: Linux (x86_64) release 2.6.15-26-amd64-generic Loading a doc from the testsuite gives me a crash.
Comment
#1
Thomas Zander 2006-12-13 17:44:49
Created an attachment (id=18914)
[details]
the doc The mml version has the same problem.
Comment
#2
Alfredo Beaumont 2007-01-02 18:01:15
SVN commit 619051 by abeaumont: Fix parsing of mlabeledtr elements. BUG: 138760 M +10 -2 matrixelement.cc --- branches/koffice/1.6/koffice/lib/kformula/matrixelement.cc #619050:619051 @@ -1130,7 +1130,7 @@ while ( !n.isNull() ) { if ( n.isElement() ) { QDomElement e = n.toElement(); - if ( e.tagName().lower() == "mtr") + if ( e.tagName().lower() == "mtr" || e.tagName().lower() == "mlabeledtr" ) { rows++; @@ -1143,6 +1143,8 @@ cc++; cellnode = cellnode.nextSibling(); } + if ( cc > 0 && e.tagName().lower() == "mlabeledtr" ) + cc--; if ( cc > cols ) cols = cc; } @@ -1168,8 +1170,14 @@ while ( !node.isNull() ) { if ( node.isElement() ) { QDomElement e = node.toElement(); - if ( e.tagName().lower() == "mtr" ) { + if ( e.tagName().lower() == "mtr" || e.tagName().lower() == "mlabeledtr" ) { QDomNode cellnode = e.firstChild(); + if ( e.tagName().lower() == "mlabeledtr" ) { + while ( ! cellnode.isNull() && ! cellnode.isElement() ) + cellnode = cellnode.nextSibling(); + if ( ! cellnode.isNull() ) + cellnode = cellnode.nextSibling(); + } while ( !cellnode.isNull() ) { if ( cellnode.isElement() ) { QDomElement cellelement = cellnode.toElement();
P
latform
:
unspecified
O
S
:
Linux
K
eywords
:
U
RL
:
People
Reporter
:
Thomas Zander
Assigned To
:
Alfredo Beaumont
Related actions
View Bug Activity
Format For Printing
XML
Clone This Bug
Note
You need to
log in
before you can comment on or make changes to this bug.
Attachments
the doc
(1.69 KB, application/vnd.oasis.opendocument.formula)
2006-12-13 17:44
,
Thomas Zander
Details
View All
Add an attachment
(proposed patch, testcase, etc.)
Depends on
:
B
locks
:
Show dependency tree
-
Show dependency graph
First
Last
Prev
Next
No search results available
Search page
Actions
Reports
Requests
Reports
Bugs reported today
Bugs reported in the last 3 days
Bug reports with patches
Weekly Bug statistics
The most hated bugs
The most severe bugs
The most frequently reported bugs
The most wanted features
Junior Jobs
Report ownership counts and charts
My Account
New Account
Log In