summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo/undostyl.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-08-20 07:12:36 +0000
committerNiklas Nebel <nn@openoffice.org>2001-08-20 07:12:36 +0000
commit11fe0ef72bd9840f0bd025bff0f8e8b2a6917801 (patch)
tree5ec6b90cdcb05dbb4a4abf21b07c6c21e026a06f /sc/source/ui/undo/undostyl.cxx
parent7c436460590c144ac6413ab0508b7227c8ddfce6 (diff)
#90292# DocStyleChanged: ForgetLastPattern
Diffstat (limited to 'sc/source/ui/undo/undostyl.cxx')
-rw-r--r--sc/source/ui/undo/undostyl.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sc/source/ui/undo/undostyl.cxx b/sc/source/ui/undo/undostyl.cxx
index 6d10173438ac..e6ac0e49a985 100644
--- a/sc/source/ui/undo/undostyl.cxx
+++ b/sc/source/ui/undo/undostyl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: undostyl.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:45:07 $
+ * last change: $Author: nn $ $Date: 2001-08-20 08:12:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,6 +74,8 @@
#include "docsh.hxx"
#include "stlpool.hxx"
#include "printfun.hxx"
+#include "scmod.hxx"
+#include "inputhdl.hxx"
#include "globstr.hrc"
// -----------------------------------------------------------------------
@@ -166,6 +168,10 @@ void lcl_DocStyleChanged( ScDocument* pDoc, SfxStyleSheetBase* pStyle, BOOL bRem
double nPPTY = aLogic.Y() / 1000.0;
Fraction aZoom(1,1);
pDoc->StyleSheetChanged( pStyle, bRemoved, &aVDev, nPPTX, nPPTY, aZoom, aZoom );
+
+ ScInputHandler* pHdl = SC_MOD()->GetInputHdl();
+ if (pHdl)
+ pHdl->ForgetLastPattern();
}
// static