[Libreoffice-commits] .: sc/source

Eike Rathke erack at kemper.freedesktop.org
Wed Sep 7 16:25:03 PDT 2011


 sc/source/ui/view/viewfunc.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 7e1bafb2f1f324167e9b438fbf06e0ec346e55ca
Author: Eike Rathke <erack at erack.de>
Date:   Thu Sep 8 01:23:08 2011 +0200

    make ScViewFunc::SetStyleSheetToMarked() work again

diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 2186e58..6324fb2 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -1547,8 +1547,7 @@ void ScViewFunc::SetStyleSheetToMarked( SfxStyleSheet* pStyleSheet, sal_Bool bRe
 
         ScMarkData::iterator itr = aFuncMark.begin(), itrEnd = aFuncMark.end();
         for (; itr != itrEnd; ++itr)
-            if (*itr != nTab)
-                pDoc->ApplyStyle( nCol, nRow, *itr, (ScStyleSheet&)*pStyleSheet );
+            pDoc->ApplyStyle( nCol, nRow, *itr, (ScStyleSheet&)*pStyleSheet );
 
         if (!AdjustBlockHeight())
             pViewData->GetDocShell()->PostPaintCell( nCol, nRow, nTab );


More information about the Libreoffice-commits mailing list