diff options
author | Oliver Specht <os@openoffice.org> | 2001-09-12 10:24:13 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2001-09-12 10:24:13 +0000 |
commit | 43de3c2a6059d34c9b5cf045f51b8a34c8d1b7ec (patch) | |
tree | 06181669abe77957a66fba3c217325bd7b33151c /sfx2/source/dialog/tplcitem.cxx | |
parent | 2b4a68b97063d58f5f21145612744344bd66e48d (diff) |
#91996# post a user event only if there is none on the way
Diffstat (limited to 'sfx2/source/dialog/tplcitem.cxx')
-rw-r--r-- | sfx2/source/dialog/tplcitem.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sfx2/source/dialog/tplcitem.cxx b/sfx2/source/dialog/tplcitem.cxx index d634a54cf75b..77ba3e6f84cc 100644 --- a/sfx2/source/dialog/tplcitem.cxx +++ b/sfx2/source/dialog/tplcitem.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tplcitem.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: os $ $Date: 2001-09-07 13:17:20 $ + * last change: $Author: os $ $Date: 2001-09-12 11:24:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -150,8 +150,10 @@ void SfxTemplateControllerItem::StateChanged( USHORT nSID, SfxItemState eState, DBG_ASSERT(pStateItem != 0, "BoolItem erwartet"); nWaterCanState = pStateItem->GetValue() ? 1 : 0; } - nUserEventId = Application::PostUserEvent( STATIC_LINK( - this, SfxTemplateControllerItem, SetWaterCanStateHdl_Impl ) ); + //not necessary if the last event is still on the way + if(!nUserEventId) + nUserEventId = Application::PostUserEvent( STATIC_LINK( + this, SfxTemplateControllerItem, SetWaterCanStateHdl_Impl ) ); break; } case SID_STYLE_EDIT: |