diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-09-27 17:11:04 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-09-29 16:11:46 +0000 |
commit | 1498c4f631e9c90b11dbdb18e8b094b90e143466 (patch) | |
tree | bbfe4b05b877089f5ad93d93f2a58bdd7ff973d0 /svx/source/dialog/_contdlg.cxx | |
parent | b32b6c09d190effbe29389a87a80df36007d2e99 (diff) |
tdf#101827 - mend busy contour dialog.
Previous impl. had an un-necessary timeout to update the screen constantly.
Change-Id: I28ba50166530d516d299b9c873cf59577043bf82
Reviewed-on: https://gerrit.libreoffice.org/29392
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'svx/source/dialog/_contdlg.cxx')
-rw-r--r-- | svx/source/dialog/_contdlg.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx index 6e072e6c7b57..0eca974eca16 100644 --- a/svx/source/dialog/_contdlg.cxx +++ b/svx/source/dialog/_contdlg.cxx @@ -102,8 +102,8 @@ void SvxContourDlg::SetSuperClass( SvxSuperContourDlg& rSuperClass ) } tools::PolyPolygon SvxContourDlg::CreateAutoContour( const Graphic& rGraphic, - const Rectangle* pRect, - const sal_uIntPtr nFlags ) + const Rectangle* pRect, + const sal_uIntPtr nFlags ) { Bitmap aBmp; XOutFlags nContourFlags = XOutFlags::ContourHorz; @@ -535,6 +535,8 @@ IMPL_LINK_TYPED( SvxSuperContourDlg, Tbx1ClickHdl, ToolBox*, pTbx, void ) m_pContourWnd->SetPipetteMode( bPipette ); } + Invalidate(); + m_pContourWnd->QueueIdleUpdate(); } IMPL_LINK_TYPED( SvxSuperContourDlg, MousePosHdl, GraphCtrl*, pWnd, void ) @@ -589,6 +591,7 @@ IMPL_LINK_NOARG_TYPED(SvxSuperContourDlg, UpdateHdl, Idle *, void) } GetBindings().Invalidate( SID_CONTOUR_EXEC ); + m_pContourWnd->QueueIdleUpdate(); } IMPL_LINK_NOARG_TYPED(SvxSuperContourDlg, CreateHdl, Idle *, void) @@ -731,6 +734,9 @@ IMPL_LINK_TYPED( SvxSuperContourDlg, WorkplaceClickHdl, ContourWindow&, rWnd, vo m_pTbx1->CheckItem(mnWorkSpaceId, false); m_pTbx1->CheckItem(mnSelectId); rWnd.SetWorkplaceMode( false ); + + m_pContourWnd->QueueIdleUpdate(); + Invalidate(); } IMPL_LINK_NOARG_TYPED(SvxSuperContourDlg, MiscHdl, LinkParamNone*, void) |