incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1354063 - /incubator/ooo/trunk/main/sc/source/ui/view/viewdata.cxx
Date Tue, 26 Jun 2012 15:29:05 GMT
Author: af
Date: Tue Jun 26 15:29:05 2012
New Revision: 1354063

URL: http://svn.apache.org/viewvc?rev=1354063&view=rev
Log:
#i119557# Ignore redundant "split" property.

          Patch by: Jianyuan Li
          Found by: binguo
          Review by: Andre Fischer

Modified:
    incubator/ooo/trunk/main/sc/source/ui/view/viewdata.cxx

Modified: incubator/ooo/trunk/main/sc/source/ui/view/viewdata.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sc/source/ui/view/viewdata.cxx?rev=1354063&r1=1354062&r2=1354063&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sc/source/ui/view/viewdata.cxx (original)
+++ incubator/ooo/trunk/main/sc/source/ui/view/viewdata.cxx Tue Jun 26 15:29:05 2012
@@ -2585,6 +2585,9 @@ void ScViewData::ReadExtOptions( const S
                     double nFactor = pDocShell->GetOutputFactor();
                     aPixel.X() = (long)( aPixel.X() * nFactor + 0.5 );
                 }
+                
+                bHSplit = bHSplit && aPixel.X() > 0;
+                bVSplit = bVSplit && aPixel.Y() > 0;
                 if( bHSplit )
                 {
                     rViewTab.eHSplitMode = SC_SPLIT_NORMAL;



Mime
View raw message