[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Embedded documents wants to save on exit
From: Inge Wallin <inge () lysator ! liu ! se>
Date: 2005-05-10 23:38:23
Message-ID: 200505110138.26249.inge () lysator ! liu ! se
[Download RAW message or body]
On Wednesday 11 May 2005 00.55, David Faure wrote:
> On Monday 09 May 2005 17:37, Inge Wallin wrote:
> > There is a bug in the KOffice libs (I think). Try out the following:
> >
> > 1. Start KSpread and create a very small spreadsheet containing for
> > instance the following table:
> >
> > a b c
> > x 1 2 3
> > y 2 4 6
> > z 3 6 9
> >
> > 2. Mark the area in question, and create a chart, for instance a bar
> > chart.
> >
> > 3. Exit KSpread without saving.
> >
> > Now KSpread wants to save before exiting (good), but the embedded KChart
> > *also* wants to save, and pops up a save/discard dialog (bad).
>
> I can't reproduce this bug. What to do answer to kspread when it asks you
> whether to save? (I tried them all: save, discard, cancel...)
> (I also tried with kspread-embedded-into-kword btw).
Discard
> Hmm when you get the template dialog for the embedded document, do you
> choose a template or an existing doc? I only tried templates.
You are not supposed to get a template dialog for the embedded document. I
fixed that bug a number of weeks ago. Do you have a correct KDEDIR(S)
setting? Or maybe I misunderstood you or you me: You should start KSPread
with an empty document, and then create the contents from scratch.
> OTOH I got this crash on closing kspread due to the embedded chart:
> #0 0xb71cd69b in QGList::findRef (this=0xa4, d=0x855edf0, fromStart=true)
> at tools/qglist.cpp:719 #1 0xb71cd1e9 in QGList::removeRef (this=0xa4,
> d=0x855edf0) at tools/qglist.cpp:553 #2 0xb6035a69 in
> QPtrList<CellBinding>::removeRef (this=0xa4, d=0x855edf0) at qptrlist.h:86
> ^ note the bogus "this" there.
> #3 0xb6030566 in KSpreadSheet::removeCellBinding (this=0x8287c48,
> _bind=0x855edf0) at
> /mnt/devel/kde/src/koffice/kspread/kspread_sheet.cc:8090 #4 0xb60118d4 in
> ~CellBinding (this=0x855edf0) at
> /mnt/devel/kde/src/koffice/kspread/kspread_sheet.cc:103 #5 0xb6011b96 in
> ~ChartBinding (this=0x855edf0) at
> /mnt/devel/kde/src/koffice/kspread/kspread_sheet.cc:132 #6 0xb6032b9e in
> ~ChartChild (this=0x855ee60) at
> /mnt/devel/kde/src/koffice/kspread/kspread_sheet.cc:8594 ^ obviously
> related to having an embedded chart
> #7 0xb7f6c1e5 in QPtrList<KoDocumentChild>::deleteItem (this=0x81fa180,
> d=0x855ee60) at qptrlist.h:150 #8 0xb71cd65f in QGList::clear
> (this=0x81fa180) at tools/qglist.cpp:701 #9 0xb7f6a560 in
> QPtrList<KoDocumentChild>::clear (this=0x81fa180) at qptrlist.h:93 #10
> 0xb7f5d3ca in ~KoDocument (this=0x81f9ea0, __vtt_parm=0xb6133d04) at
> /mnt/devel/kde/src/koffice/lib/kofficecore/koDocument.cc:271 #11 0xb5f37940
> in ~KSpreadDoc (this=0x81f9ea0) at
> /mnt/devel/kde/src/koffice/kspread/kspread_doc.cc:282 #12 0xb7f7a5d3 in
> KoMainWindow::setRootDocument (this=0x8288420, doc=0x0) at
> /mnt/devel/kde/src/koffice/lib/kofficecore/koMainWindow.cc:371 #13
> 0xb7f7d31c in KoMainWindow::closeEvent (this=0x8288420, e=0xbfffec70) at
> /mnt/devel/kde/src/koffice/lib/kofficecore/koMainWindow.cc:939 #14
> 0xb6f25380 in QWidget::event (this=0x8288420, e=0xbfffec70) at
> kernel/qwidget.cpp:4792 [Alt+F4]
Yeah, the crash on exit is well known: bug 101915.
-Inge
--
Inge Wallin | Thus spake the master programmer: |
| "After three days without programming, |
inge@lysator.liu.se | life becomes meaningless." |
| Geoffrey James: The Tao of Programming. |
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://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