[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: [kspread] insertRow doesn't update dependencies
From: David Faure <david () mandrakesoft ! com>
Date: 2002-10-09 11:47:35
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bug: I insert a row in my (big) spread sheet, and KSpreadCell::calc runs into
an infinite loop, calling itself when doing calc() in its dependencies
(cell->calc(), where cell==this).
BTW I just tried inserting a row on a very simple spread sheet with
F5:345 and F6:=F5, (and inserting a row between the two). Although the infinite
loop doesn't happen there, I get tons of those:
kspread: WARNING: Error: Calling KSpreadCell::row() for default cell
kspread: WARNING: Error: Calling KSpreadCell::column() for default cell
kspread: KSpreadCluster::lookup: invalid column or row value (col: -1 | row: 0)
kspread: KSpreadColumnCluster::lookup: invalid column value (col: -1)
kspread: KSpreadCluster::lookup: invalid column or row value (col: 0 | row: -1)
kspread: KSpreadRowCluster::lookup: invalid row value (row: -1)
Actually the strange thing is that in my big spread sheet, there's *no* formula
below the row being inserted (only tons of them above), so I don't see how inserting
a row could have any effect on the dependencies... it shouldn't.
PS: I tried adding a (if cell != this) in calc, but then the infinite loop only moves to
#6 0x41924d44 in KSpreadSheet::updateCell (this=0x8e8d3d0, _column=8, _row=24)
at /mnt/devel/kde/kdecvs/koffice/kspread/kspread_table.cc:7046
#7 0x418f2e9b in KSpreadCell::calc (this=0x90b3138, delay=true)
at /mnt/devel/kde/kdecvs/koffice/kspread/kspread_cell.cc:1798
#8 0x41924aab in KSpreadSheet::updateCellArea (this=0x8e8d3d0, cellArea=@0xbfe060e0)
at /mnt/devel/kde/kdecvs/koffice/kspread/kspread_table.cc:7017
#9 0x41924d44 in KSpreadSheet::updateCell (this=0x8e8d3d0, _column=8, _row=24)
at /mnt/devel/kde/kdecvs/koffice/kspread/kspread_table.cc:7046
#10 0x418f2e9b in KSpreadCell::calc (this=0x90b3138, delay=true)
at /mnt/devel/kde/kdecvs/koffice/kspread/kspread_cell.cc:1798
Hmm.
- --
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9pBdY72KcVAmwbhARAo1nAKCN8i0qciRw2UZ+UXBLn0WCAt2bSACgn22O
i9WL/9k+hUaZde66s+wAJdc=
=U4Vq
-----END PGP SIGNATURE-----
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic