summaryrefslogtreecommitdiff
path: root/sc/source/ui/drawfunc/fuconpol.cxx
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2002-07-18 08:57:13 +0000
committerArmin Weiss <aw@openoffice.org>2002-07-18 08:57:13 +0000
commitd59e030bb1f8f1e579231d854ef0cd52e3e1c7dd (patch)
tree0d87f51b394d25c3e442e2e097c04227d63da35c /sc/source/ui/drawfunc/fuconpol.cxx
parent16f64f3e6db88cdc4e4309d917030fb8e83ba2b6 (diff)
#95491# mechanism to remember button state for creation of own MouseEvents
Diffstat (limited to 'sc/source/ui/drawfunc/fuconpol.cxx')
-rw-r--r--sc/source/ui/drawfunc/fuconpol.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sc/source/ui/drawfunc/fuconpol.cxx b/sc/source/ui/drawfunc/fuconpol.cxx
index c57592b22c42..b6cfc4984fb1 100644
--- a/sc/source/ui/drawfunc/fuconpol.cxx
+++ b/sc/source/ui/drawfunc/fuconpol.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fuconpol.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: aw $ $Date: 2002-03-22 09:36:37 $
+ * last change: $Author: aw $ $Date: 2002-07-18 09:50:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -217,6 +217,9 @@ FuConstPolygon::~FuConstPolygon()
BOOL __EXPORT FuConstPolygon::MouseButtonDown(const MouseEvent& rMEvt)
{
+ // #95491# remember button state for creation of own MouseEvents
+ SetMouseButtonCode(rMEvt.GetButtons());
+
BOOL bReturn = FuConstruct::MouseButtonDown(rMEvt);
SdrViewEvent aVEvt;
@@ -259,6 +262,9 @@ BOOL __EXPORT FuConstPolygon::MouseMove(const MouseEvent& rMEvt)
BOOL __EXPORT FuConstPolygon::MouseButtonUp(const MouseEvent& rMEvt)
{
+ // #95491# remember button state for creation of own MouseEvents
+ SetMouseButtonCode(rMEvt.GetButtons());
+
BOOL bReturn = FALSE;
BOOL bSimple = FALSE;