summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-10-09 16:37:54 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2015-10-09 14:22:41 +0000
commit3e23ee076ae6b46af617c0692998b22459a43dde (patch)
treee45d96d86f3c848c377dafde3b0fe8c569446f25 /sc/source
parentfb62052d5ac069d700a5410db35d6949a4c4008b (diff)
tdf#94910 sc: Fix drawing tools
Regression of: commit 89d39bc100aabf5dccbe77c0b5c0c85736e85b39 Author: Oliver Specht <oliver.specht@cib.de> Date: Wed Sep 30 16:10:07 2015 +0200 tdf#94559: 4th step to remove rtti.hxx Change-Id: I94408dafde0f2dbea6c3a112963468c593adfc2d Reviewed-on: https://gerrit.libreoffice.org/19276 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/tabvwsh2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/tabvwsh2.cxx b/sc/source/ui/view/tabvwsh2.cxx
index 60e811e2f5c4..9080743d5f9b 100644
--- a/sc/source/ui/view/tabvwsh2.cxx
+++ b/sc/source/ui/view/tabvwsh2.cxx
@@ -26,7 +26,6 @@
#include <sfx2/dispatch.hxx>
#include "tabvwsh.hxx"
-#include "drawattr.hxx"
#include "drawsh.hxx"
#include "drawview.hxx"
#include "fupoor.hxx"
@@ -101,10 +100,11 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq)
if (nNewId == SID_INSERT_DRAW && pArgs)
{
const SfxPoolItem* pItem;
+ const SfxAllEnumItem* pEnumItem = nullptr;
if ( pArgs->GetItemState( SID_INSERT_DRAW, true, &pItem ) == SfxItemState::SET &&
- dynamic_cast<const SvxDrawToolItem*>( pItem) != nullptr )
+ ( pEnumItem = dynamic_cast<const SfxAllEnumItem*>( pItem ) ) )
{
- SvxDrawToolEnum eSel = (SvxDrawToolEnum)static_cast<const SvxDrawToolItem*>(pItem)->GetValue();
+ SvxDrawToolEnum eSel = (SvxDrawToolEnum)pEnumItem->GetValue();
switch (eSel)
{
case SVX_SNAP_DRAW_SELECT: nNewId = SID_OBJECT_SELECT; break;