incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arie...@apache.org
Subject svn commit: r1230356 - /incubator/ooo/trunk/main/sc/source/ui/undo/undotab.cxx
Date Thu, 12 Jan 2012 01:48:44 GMT
Author: arielch
Date: Thu Jan 12 01:48:43 2012
New Revision: 1230356

URL: http://svn.apache.org/viewvc?rev=1230356&view=rev
Log:
i118771 - ScUndoImportTab should preserve tab background color

Modified:
    incubator/ooo/trunk/main/sc/source/ui/undo/undotab.cxx

Modified: incubator/ooo/trunk/main/sc/source/ui/undo/undotab.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sc/source/ui/undo/undotab.cxx?rev=1230356&r1=1230355&r2=1230356&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sc/source/ui/undo/undotab.cxx (original)
+++ incubator/ooo/trunk/main/sc/source/ui/undo/undotab.cxx Thu Jan 12 01:48:43 2012
@@ -990,6 +990,7 @@ void ScUndoImportTab::Undo()
 			pDoc->CopyToDocument(0,0,nTabPos, MAXCOL,MAXROW,nTabPos, IDF_ALL,sal_False, pRedoDoc
);
 			pDoc->GetName( nTabPos, aOldName );
 			pRedoDoc->RenameTab( nTabPos, aOldName, sal_False );
+            pRedoDoc->SetTabBgColor( nTabPos, pDoc->GetTabBgColor(nTabPos) );
 
 			if ( pDoc->IsScenario(nTabPos) )
 			{
@@ -1044,6 +1045,7 @@ void ScUndoImportTab::Redo()
 	{
 		SCTAB nTabPos=nTab+i;
 		pRedoDoc->CopyToDocument(0,0,nTabPos, MAXCOL,MAXROW,nTabPos, IDF_ALL,sal_False, pDoc
);
+        pDoc->SetTabBgColor( nTabPos, pRedoDoc->GetTabBgColor(nTabPos) );
 
 		if ( pRedoDoc->IsScenario(nTabPos) )
 		{



Mime
View raw message