From 4f6dde4f846d75502463245345d0c1307c40465c Mon Sep 17 00:00:00 2001 From: Werner Koerner Date: Wed, 19 Dec 2012 15:20:32 +0100 Subject: [PATCH] fdo#57881 choose style 'right and left' for undefined page style Change-Id: If809cf41c2cb92e646de367d1e9adba346ab58a2 --- cui/source/tabpages/page.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx index 50b6a57..b3ef880 100644 --- a/cui/source/tabpages/page.cxx +++ b/cui/source/tabpages/page.cxx @@ -95,7 +95,7 @@ sal_uInt16 PageUsageToPos_Impl( sal_uInt16 nUsage ) 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 PageUsageToPos_Impl( sal_uInt16 nUsage ) sal_uInt16 PosToPageUsage_Impl( sal_uInt16 nPos ) { if ( nPos >= SAL_N_ELEMENTS(aArr) ) - return 0; + nPos = 0; return aArr[nPos]; } -- 1.7.10.4