Bug 37152 - unable to delete a chart in kspread
Summary: unable to delete a chart in kspread
Status: RESOLVED FIXED
Alias: None
Product: calligrasheets
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Laurent Montel
URL:
Keywords:
: 64573 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-15 12:48 UTC by Frederic Heem
Modified: 2003-11-18 21:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Heem 2002-01-15 12:45:57 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kspread
Version:           KDE 2.2.2 
Severity:          normal
Installed from:    Mandrake RPMs
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

Deleting a chart in kspread doesn't work

(Submitted via bugs.kde.org)
(Called from KBugReport dialog. Fields Application KDE Version OS Compiler manually changed)
Comment 1 Laurent Montel 2002-01-15 14:32:55 UTC
Le Tuesday 15 January 2002 13:45 f.heem@free.fr a écrit :
> Package: kspread
> Version: KDE 2.2.2
> Severity: normal
> Installed from:    Mandrake RPMs
> Compiler:          Not Specified
> OS:                Linux
> OS/Compiler notes: Not Specified
>
> Deleting a chart in kspread doesn't work
>
> (Submitted via bugs.kde.org)
> (Called from KBugReport dialog. Fields Application KDE Version OS
> Compiler manually changed)

What is your koffice version ?
In koffice 1.1 we can remove it (and in koffice 1.0 I could remove it)

Regards.
Comment 2 Frederic Heem 2002-01-16 14:05:50 UTC
Hi Laurent
I'm using the latest kspread 1.1.1. BTW how do you connect a kspread table to
kchart I mean that values for kchart are taken from kspread ? This is a
critical feature I will not use kspread until it's possible to draw a chart
from a kspread table.
Cheers
Frederic
  
Quoting Laurent Montel <lmontel@mandrakesoft.com>:

> Le Tuesday 15 January 2002 13:45 f.heem@free.fr a écrit :
> > Package: kspread
> > Version: KDE 2.2.2
> > Severity: normal
> > Installed from:    Mandrake RPMs
> > Compiler:          Not Specified
> > OS:                Linux
> > OS/Compiler notes: Not Specified
> >
> > Deleting a chart in kspread doesn't work
> >
> > (Submitted via bugs.kde.org)
> > (Called from KBugReport dialog. Fields Application KDE Version OS
> > Compiler manually changed)
> 
> What is your koffice version ?
> In koffice 1.1 we can remove it (and in koffice 1.0 I could remove it)
> 
> Regards.
>
Comment 3 John Dailey 2002-03-20 20:03:35 UTC
Charts can be deleted in the current development version of KSpread.  This =
is=20
done by right-clicking on the border of the chart object which gives the=20
option of deleting the embedded object.

Please resubmit the bug if there are still problems after the upcoming KOff=
ice=20
1.2 Beta 1 release.

-John
Comment 4 John Dailey 2002-03-20 20:36:26 UTC
closed
Comment 5 Lukáš Tinkl 2003-02-22 14:58:11 UTC
The bug is still present in CVS as of 2003-02-22 
--- 
Lukas Tinkl 
Comment 6 Philipp Müller 2003-02-24 09:19:35 UTC
Charts can still be deleted, but the mouse cursor handling as well as the 
border display is broken at the moment.
I plan to fix this in a few weeks.

Philipp
Comment 7 Lukáš Tinkl 2003-11-05 20:47:56 UTC
Hmm, a "few weeks" are gone, still isn't fixed... :(
Comment 8 Lukáš Tinkl 2003-11-07 18:34:32 UTC
*** Bug 64573 has been marked as a duplicate of this bug. ***
Comment 9 Ariya Hidayat 2003-11-18 21:12:20 UTC
Subject: koffice/kspread

CVS commit by ariya: 

show frame border when embedded object is selected
so now chart can be deleted

CCMAIL: 37152-done@bugs.kde.org


  M +13 -0     kspread_view.cc   1.700


--- koffice/kspread/kspread_view.cc  #1.699:1.700
@@ -6437,8 +6437,15 @@ void KSpreadView::slotChildSelected( KoD
     }
   }
+
+  m_pDoc->emitBeginOperation( false );
+  m_pTable->setRegionPaintDirty(QRect(QPoint(0,0), QPoint(KS_colMax, KS_rowMax)));
+  m_pDoc->emitEndOperation();
+  paintUpdates();
 }
 
 void KSpreadView::slotChildUnselected( KoDocumentChild* )
 {
+  if ( m_pTable && !m_pTable->isProtected() )
+  {
     m_transform->setEnabled( FALSE );
 
@@ -6448,4 +6455,10 @@ void KSpreadView::slotChildUnselected( K
     }
     deleteEditor( true );
+  }
+
+  m_pDoc->emitBeginOperation( false );
+  m_pTable->setRegionPaintDirty(QRect(QPoint(0,0), QPoint(KS_colMax, KS_rowMax)));
+  m_pDoc->emitEndOperation();
+  paintUpdates();
 }