summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-08-29 23:03:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-08-29 23:03:16 +0200
commitf5b05d92dd6b94cb93ad7391facb866ef74d64a2 (patch)
tree200ce89b91c53648fe645d4aa1db0b88130b396a /sfx2
parentdda842bec338efb06457551136678340d0718807 (diff)
-Werror,-Wundef
Change-Id: Iaef2e4dec0d2fc8d0583fe2a56b5e0bcba667d8c
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/templdlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 6e955a63fa45..ebc4101cd916 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 )
{