[Libreoffice-commits] core.git: sc/source

Stephan Bergmann sbergman at redhat.com
Fri Apr 17 08:09:17 PDT 2015


 sc/source/ui/unoobj/cellsuno.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c110559268461dd3b7b8e28d24e36fdbcc25bb17
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Apr 17 17:05:29 2015 +0200

    simplify code
    
    Change-Id: I07e0b1689225a78db92bd7338291a128d671c0ab

diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 7fa734f..ddcced2 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -9028,8 +9028,8 @@ void ScTableRowObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntr
         }
         else if ( pEntry->nWID == SC_WID_UNO_MANPAGE )
         {
-            ScBreakType nBreak = (rDoc.HasRowBreak(nRow, nTab) & BREAK_MANUAL);
-            ScUnoHelpFunctions::SetBoolInAny( rAny, nBreak != BREAK_NONE );
+            bool bBreak = (rDoc.HasRowBreak(nRow, nTab) & BREAK_MANUAL) != 0;
+            ScUnoHelpFunctions::SetBoolInAny( rAny, bBreak );
         }
         else
             ScCellRangeObj::GetOnePropertyValue(pEntry, rAny);


More information about the Libreoffice-commits mailing list