Author: hdu
Date: Tue Mar 5 09:57:11 2013
New Revision: 1452713
URL: http://svn.apache.org/r1452713
Log:
fix miscarried bitwise check in SvxHFPage::Reset()
Modified:
openoffice/trunk/main/svx/source/dialog/hdft.cxx
Modified: openoffice/trunk/main/svx/source/dialog/hdft.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/dialog/hdft.cxx?rev=1452713&r1=1452712&r2=1452713&view=diff
==============================================================================
--- openoffice/trunk/main/svx/source/dialog/hdft.cxx (original)
+++ openoffice/trunk/main/svx/source/dialog/hdft.cxx Tue Mar 5 09:57:11 2013
@@ -406,7 +406,7 @@ void SvxHFPage::Reset( const SfxItemSet&
0 != (pItem =
pShell->GetItem(SID_HTML_MODE))))
{
nHtmlMode = ((SfxUInt16Item*)pItem)->GetValue();
- if(nHtmlMode && HTMLMODE_ON)
+ if(nHtmlMode & HTMLMODE_ON)
{
aCntSharedBox.Hide();
aBackgroundBtn.Hide();