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

Stephan Bergmann sbergman at redhat.com
Thu Aug 29 14:03:36 PDT 2013


 sfx2/source/dialog/templdlg.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit f5b05d92dd6b94cb93ad7391facb866ef74d64a2
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Aug 29 23:03:16 2013 +0200

    -Werror,-Wundef
    
    Change-Id: Iaef2e4dec0d2fc8d0583fe2a56b5e0bcba667d8c

diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 6e955a6..ebc4101 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -1050,7 +1050,7 @@ SfxCommonTemplateDialog_Impl::~SfxCommonTemplateDialog_Impl()
     Execute_Impl(SID_STYLE_END_PREVIEW,
         String(), String(),
         0, 0, 0, 0 );
-#if STYLESPREVIEW
+#if defined STYLESPREVIEW
     Execute_Impl(SID_STYLE_END_PREVIEW,
         String(), String(),
         0, 0, 0, 0 );
@@ -1433,7 +1433,7 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(sal_uInt16 nFlags)
             OUString aStyle;
             if(pState)
                 aStyle = pState->GetStyleName();
-#if STYLESPREVIEW
+#if defined STYLESPREVIEW
             mbIgnoreSelect = true; // in case we get a selection change
             // in anycase we should stop any preview
             Execute_Impl(SID_STYLE_END_PREVIEW,
@@ -2336,7 +2336,7 @@ IMPL_LINK( SfxCommonTemplateDialog_Impl, FmtSelectHdl, SvTreeListBox *, pListBox
     if( pListBox )
     {
         SelectStyle( pListBox->GetEntryText( pListBox->GetHdlEntry() ));
-#if STYLESPREVIEW
+#if defined STYLESPREVIEW
         sal_uInt16 nModifier = aFmtLb.GetModifier();
         if ( mbIgnoreSelect )
         {


More information about the Libreoffice-commits mailing list