[Libreoffice-commits] .: svx/source
Sebastian Spaeth
spaetz at kemper.freedesktop.org
Tue Nov 16 06:33:17 PST 2010
svx/source/tbxctrls/grafctrl.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit d620ab7079843339e2531e3f11be32527fc31b35
Author: Sebastian Spaeth <Sebastian at SSpaeth.de>
Date: Tue Nov 16 15:31:34 2010 +0100
Fix build and remove hicontrast parameter
The parameter is not needed anymore, as there are no specific
hicontrast definitions.
Forgot to adapt {0,0,0} ->{0,0} when I removed a struct member in the
previous commit. This compiles now again.
diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx
index c60a25d..f349b31 100644
--- a/svx/source/tbxctrls/grafctrl.cxx
+++ b/svx/source/tbxctrls/grafctrl.cxx
@@ -255,7 +255,7 @@ struct CommandToRID
USHORT nResId;
};
-static USHORT ImplGetRID( const OUString& aCommand, bool bHighContrast )
+static USHORT ImplGetRID( const OUString& aCommand )
{
static const CommandToRID aImplCommandToResMap[] =
{
@@ -266,7 +266,7 @@ static USHORT ImplGetRID( const OUString& aCommand, bool bHighContrast )
{ ".uno:GrafContrast", RID_SVXIMG_GRAF_CONTRAST },
{ ".uno:GrafGamma", RID_SVXIMG_GRAF_GAMMA },
{ ".uno:GrafTransparence", RID_SVXIMG_GRAF_TRANSPARENCE },
- { 0, 0, 0 }
+ { 0, 0 }
};
USHORT nRID = 0;
@@ -314,7 +314,7 @@ ImplGrafControl::ImplGrafControl( Window* pParent, USHORT nSlotId, const rtl::OU
maImage ( this ),
maField ( this, rCmd, rFrame )
{
- ResId aResId( ImplGetRID( rCmd, false ), DIALOG_MGR() ) ;
+ ResId aResId( ImplGetRID( rCmd ), DIALOG_MGR() ) ;
Image aImage( aResId );
Size aImgSize( aImage.GetSizePixel() );
More information about the Libreoffice-commits
mailing list