summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-03-05 02:00:40 +0200
committerTor Lillqvist <tml@iki.fi>2012-03-05 02:05:30 +0200
commite42515549eae51fa625b2d8789f20a5065365ac5 (patch)
tree2af9385edcdd9a87361f8869349c6f4f57f82119 /sw
parentWorkaround for weird gbuild looping problem with Clang for iOS (diff)
downloadcore-e42515549eae51fa625b2d8789f20a5065365ac5.tar.gz
core-e42515549eae51fa625b2d8789f20a5065365ac5.zip
Sprinkle DISABLE_SCRIPTING ifdefs
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/app/docsh.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/ui/app/docsh.cxx b/sw/source/ui/app/docsh.cxx
index bb6adecbfa60..ef3d10aa173d 100644
--- a/sw/source/ui/app/docsh.cxx
+++ b/sw/source/ui/app/docsh.cxx
@@ -581,6 +581,7 @@ sal_Bool SwDocShell::ConvertTo( SfxMedium& rMedium )
if( pFlt->GetUserData().EqualsAscii( "HTML") )
{
SvxHtmlOptions& rHtmlOpt = SvxHtmlOptions::Get();
+#ifndef DISABLE_SCRIPTING
if( !rHtmlOpt.IsStarBasic() && rHtmlOpt.IsStarBasicWarning() && HasBasic() )
{
uno::Reference< XLibraryContainer > xLibCont(GetBasicContainer(), UNO_QUERY);
@@ -602,6 +603,7 @@ sal_Bool SwDocShell::ConvertTo( SfxMedium& rMedium )
}
}
}
+#endif
UpdateDocInfoForSave();
}