summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/gridwin.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-15 15:50:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-16 06:09:55 +0000
commit64ea8306b0ceb001132ac9cbc945a12afc01b8cd (patch)
treef77f453a43c8ce388b45b460193d608399ecaa47 /sc/source/ui/view/gridwin.cxx
parent4f786274be8f9b01b34ad0772bcf718d5259bdc0 (diff)
drop GetId() from SfxUndoAction
mostly so that the subclasses can use proper enum types for their own IDs. It turns out that nothing at the svl/sfx2 level needs an ID anyhow. Change-Id: I3c020aeafb812fa30d896216d4e3bc1a82cbfeab Reviewed-on: https://gerrit.libreoffice.org/35222 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/gridwin.cxx')
-rw-r--r--sc/source/ui/view/gridwin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 3640f0b3ed40..bfbae1242a84 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -129,6 +129,7 @@
#include "spellcheckcontext.hxx"
#include "uiobject.hxx"
#include "scabstdlg.hxx"
+#include "undoblk.hxx"
#include <svx/sdrpagewindow.hxx>
#include <svx/sdr/overlay/overlaymanager.hxx>
@@ -1860,7 +1861,7 @@ void ScGridWindow::MouseButtonUp( const MouseEvent& rMEvt )
if (nMouseStatus == SC_GM_WATERUNDO) // Undo in format paintbrush mode
{
::svl::IUndoManager* pMgr = pViewData->GetDocShell()->GetUndoManager();
- if ( pMgr->GetUndoActionCount() && pMgr->GetUndoActionId() == STR_UNDO_APPLYCELLSTYLE )
+ if ( pMgr->GetUndoActionCount() && dynamic_cast<ScUndoSelectionStyle*>(pMgr->GetUndoAction()) )
pMgr->Undo();
return;
}