incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arie...@apache.org
Subject svn commit: r1245241 - in /incubator/ooo/trunk/main/sc/source/ui: docshell/tablink.cxx undo/undoblk3.cxx
Date Thu, 16 Feb 2012 23:03:11 GMT
Author: arielch
Date: Thu Feb 16 23:03:11 2012
New Revision: 1245241

URL: http://svn.apache.org/viewvc?rev=1245241&view=rev
Log:
i118927 - Undo/Redo "Update Link" does not reset sheet tab color

Modified:
    incubator/ooo/trunk/main/sc/source/ui/docshell/tablink.cxx
    incubator/ooo/trunk/main/sc/source/ui/undo/undoblk3.cxx

Modified: incubator/ooo/trunk/main/sc/source/ui/docshell/tablink.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sc/source/ui/docshell/tablink.cxx?rev=1245241&r1=1245240&r2=1245241&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sc/source/ui/docshell/tablink.cxx (original)
+++ incubator/ooo/trunk/main/sc/source/ui/docshell/tablink.cxx Thu Feb 16 23:03:11 2012
@@ -266,6 +266,7 @@ sal_Bool ScTableLink::Refresh(const Stri
 				pUndoDoc->TransferDrawPage( pDoc, nTab, nTab );
 				pUndoDoc->SetLink( nTab, nMode, aFileName, aFilterName,
 					aOptions, aTabName, GetRefreshDelay() );
+				pUndoDoc->SetTabBgColor( nTab, pDoc->GetTabBgColor(nTab) );
 			}
 
 			//	Tabellenname einer ExtDocRef anpassen

Modified: incubator/ooo/trunk/main/sc/source/ui/undo/undoblk3.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sc/source/ui/undo/undoblk3.cxx?rev=1245241&r1=1245240&r2=1245241&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sc/source/ui/undo/undoblk3.cxx (original)
+++ incubator/ooo/trunk/main/sc/source/ui/undo/undoblk3.cxx Thu Feb 16 23:03:11 2012
@@ -1676,6 +1676,7 @@ void __EXPORT ScUndoRefreshLink::Undo()
 								   pDoc->GetLinkOpt(nTab),
 								   pDoc->GetLinkTab(nTab),
 								   pDoc->GetLinkRefreshDelay(nTab) );
+				pRedoDoc->SetTabBgColor( nTab, pDoc->GetTabBgColor(nTab) );
 			}
 
 			pDoc->DeleteAreaTab( aRange,IDF_ALL );
@@ -1685,9 +1686,11 @@ void __EXPORT ScUndoRefreshLink::Undo()
 								 pUndoDoc->GetLinkFlt(nTab),  pUndoDoc->GetLinkOpt(nTab),
 								 pUndoDoc->GetLinkTab(nTab),
 								 pUndoDoc->GetLinkRefreshDelay(nTab) );
+			pDoc->SetTabBgColor( nTab, pUndoDoc->GetTabBgColor(nTab) );
 		}
 
 	pDocShell->PostPaintGridAll();
+	pDocShell->PostPaintExtras();
 
 	EndUndo();
 }
@@ -1718,9 +1721,11 @@ void __EXPORT ScUndoRefreshLink::Redo()
 						   pRedoDoc->GetLinkOpt(nTab),
 						   pRedoDoc->GetLinkTab(nTab),
 						   pRedoDoc->GetLinkRefreshDelay(nTab) );
+			pDoc->SetTabBgColor( nTab, pRedoDoc->GetTabBgColor(nTab) );
 		}
 
 	pDocShell->PostPaintGridAll();
+	pDocShell->PostPaintExtras();
 
 	EndUndo();
 }



Mime
View raw message