summaryrefslogtreecommitdiff
path: root/forms/source/component
diff options
context:
space:
mode:
authorAriel Constenla-Haile <arielch@apache.org>2012-12-23 11:29:21 +0000
committerAriel Constenla-Haile <arielch@apache.org>2012-12-23 11:29:21 +0000
commit399946b82f5efec19cd82d1c320d5aa9295d235d (patch)
treededa9e189523c578be47e9b4f6d44edde5e55a57 /forms/source/component
parent9271c50c2d02b708cbe274568c455ff900595884 (diff)
i121542 - Unify the Menu API
Notes
Notes: merged as: 9052caae53ef6ec7eeab20f1ac56bd6310b4451b
Diffstat (limited to 'forms/source/component')
-rw-r--r--forms/source/component/ImageControl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/forms/source/component/ImageControl.cxx b/forms/source/component/ImageControl.cxx
index 6f3a875a452e..3c8dd873214d 100644
--- a/forms/source/component/ImageControl.cxx
+++ b/forms/source/component/ImageControl.cxx
@@ -925,7 +925,7 @@ void OImageControlControl::mousePressed(const ::com::sun::star::awt::MouseEvent&
if ( impl_isEmptyGraphics_nothrow() )
xMenu->enableItem( ID_CLEAR_GRAPHICS, sal_False );
- awt::Rectangle aRect( e.X, e.Y, 0, 0 );
+ awt::Point aPos( e.X, e.Y );
if ( ( e.X < 0 ) || ( e.Y < 0 ) )
{ // context menu triggered by keyboard
// position it in the center of the control
@@ -935,12 +935,12 @@ void OImageControlControl::mousePressed(const ::com::sun::star::awt::MouseEvent&
if ( xWindow.is() )
{
awt::Rectangle aPosSize = xWindow->getPosSize();
- aRect.X = aPosSize.Width / 2;
- aRect.Y = aPosSize.Height / 2;
+ aPos.X = aPosSize.Width / 2;
+ aPos.Y = aPosSize.Height / 2;
}
}
- const sal_Int16 nResult = xMenu->execute( xWindowPeer, aRect, PopupMenuDirection::EXECUTE_DEFAULT );
+ const sal_Int16 nResult = xMenu->execute( xWindowPeer, aPos, PopupMenuDirection::EXECUTE_DEFAULT );
switch ( nResult )
{