[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/koffice/1.5/koffice/kspread trunk/koffice/kspread
From:       Stefan Nikolaus <stefan.nikolaus () kdemail ! net>
Date:       2006-04-22 9:23:32
Message-ID: 1145697812.295606.24088.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 532606 by nikolaus:

operation	Selection
		Fix multi sheet selections for formulas (internal slang: choices)
		In a few cases the resulting formula was put in a wrong sheet.

Note:	The hiding of the editor for sheets other than the choice's
		starting sheet is intended (see: Canvas::updateEditor()).

BUG: 125941


 M  +2 -14     branches/koffice/1.5/koffice/kspread/kspread_canvas.cc  
 M  +2 -14     trunk/koffice/kspread/kspread_canvas.cc  


--- branches/koffice/1.5/koffice/kspread/kspread_canvas.cc #532605:532606
@@ -3724,20 +3724,8 @@
 {
   Sheet * sheet = activeSheet();
 
-  //Ensure that the choice always has a sheet associated
-  //with it.
-  //
-  //FIXME:  This really doesn't make sense.  The concept of
-  //the 'choice selection' having only one sheet is wrong - because
-  //different parts of the choice selection may be on different
-  //sheets (at least, this doesn't work at the moment, but it should
-  //do).  REVIEW after KSpread 1.5 has been released.
-  //
-  //This is a temporary workaround for now.  It fixes the problem
-  //where the editor would be hidden because the choice's sheet
-  //was not the active sheet.
-  if (!choice()->sheet())
-  	choice()->setSheet( activeSheet() );
+  // Set the starting sheet of the choice.
+  choice()->setSheet( activeSheet() );
 
   if ( !d->cellEditor )
   {
--- trunk/koffice/kspread/kspread_canvas.cc #532605:532606
@@ -3666,20 +3666,8 @@
 {
   Sheet * sheet = activeSheet();
 
-  //Ensure that the choice always has a sheet associated
-  //with it.
-  //
-  //FIXME:  This really doesn't make sense.  The concept of
-  //the 'choice selection' having only one sheet is wrong - because
-  //different parts of the choice selection may be on different
-  //sheets (at least, this doesn't work at the moment, but it should
-  //do).  REVIEW after KSpread 1.5 has been released.
-  //
-  //This is a temporary workaround for now.  It fixes the problem
-  //where the editor would be hidden because the choice's sheet
-  //was not the active sheet.
-  if (!choice()->sheet())
-  	choice()->setSheet( activeSheet() );
+  // Set the starting sheet of the choice.
+  choice()->setSheet( activeSheet() );
 
   if ( !d->cellEditor )
   {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic