incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arie...@apache.org
Subject svn commit: r1245177 - in /incubator/ooo/trunk/main/sc/source/ui/docshell: docsh6.cxx tablink.cxx
Date Thu, 16 Feb 2012 21:12:42 GMT
Author: arielch
Date: Thu Feb 16 21:12:41 2012
New Revision: 1245177

URL: http://svn.apache.org/viewvc?rev=1245177&view=rev
Log:
i118921 - Repaint linked sheet tab background color after updating the link

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

Modified: incubator/ooo/trunk/main/sc/source/ui/docshell/docsh6.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sc/source/ui/docshell/docsh6.cxx?rev=1245177&r1=1245176&r2=1245177&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sc/source/ui/docshell/docsh6.cxx (original)
+++ incubator/ooo/trunk/main/sc/source/ui/docshell/docsh6.cxx Thu Feb 16 21:12:41 2012
@@ -442,9 +442,11 @@ sal_Bool ScDocShell::ReloadTabLinks()
 		{
 			ScTableLink* pTabLink = (ScTableLink*)pBase;
 //			pTabLink->SetAddUndo(sal_False);		//! Undo's zusammenfassen
-			pTabLink->SetPaint(sal_False);			//	Paint nur einmal am Ende
+			// Painting only after Update() makes no sense:
+			// ScTableLink::Refresh() will post a Paint only is bDoPaint is true
+			//pTabLink->SetPaint(sal_False);			//	Paint nur einmal am Ende
 			pTabLink->Update();
-			pTabLink->SetPaint(sal_True);
+			//pTabLink->SetPaint(sal_True);
 //			pTabLink->SetAddUndo(sal_True);
 			bAny = sal_True;
 		}

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=1245177&r1=1245176&r2=1245177&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 21:12:41 2012
@@ -414,7 +414,7 @@ sal_Bool ScTableLink::Refresh(const Stri
 	if (bDoPaint)
 	{
         pImpl->m_pDocSh->PostPaint( ScRange(0,0,0,MAXCOL,MAXROW,MAXTAB),
-								PAINT_GRID | PAINT_TOP | PAINT_LEFT );
+								PAINT_GRID | PAINT_TOP | PAINT_LEFT | PAINT_EXTRAS );
 		aModificator.SetDocumentModified();
 	}
 



Mime
View raw message