Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1496

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/96/1496/1

Fix wrong default return values

Change-Id: Iba1a46b91a79e41fae1661d9d3742d6195e4c4dc
---
M cui/source/tabpages/page.cxx
1 file changed, 2 insertions(+), 2 deletions(-)



diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx
index 50b6a57..dd97197 100644
--- a/cui/source/tabpages/page.cxx
+++ b/cui/source/tabpages/page.cxx
@@ -95,7 +95,7 @@
     for ( sal_uInt16 i = 0; i < SAL_N_ELEMENTS(aArr); ++i )
         if ( aArr[i] == ( nUsage & 0x000f ) )
             return i;
-    return SVX_PAGE_ALL;
+    return 0;
 }
 
 // -----------------------------------------------------------------------
@@ -103,7 +103,7 @@
 sal_uInt16 PosToPageUsage_Impl( sal_uInt16 nPos )
 {
     if ( nPos >= SAL_N_ELEMENTS(aArr) )
-        return 0;
+        return SVX_PAGE_ALL;
     return aArr[nPos];
 }
 

-- 
To view, visit https://gerrit.libreoffice.org/1496
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iba1a46b91a79e41fae1661d9d3742d6195e4c4dc
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Werner Körner <wk661lo@gmail.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.