summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/transfrm.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-11-05 14:04:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-11-06 17:16:09 +0100
commitde78304d92140901d19a6ea17bdc1d568df955c4 (patch)
treef0494ee90a4d7493e2381bbd17f5c1f337a35f0e /cui/source/tabpages/transfrm.cxx
parent8c9b8c5970a08c2ef0ccddb7a691f3731d39175a (diff)
make SdrObject Identifiers SdrObjKind enum members
with unique values so that, e.g. if (pObj->GetObjIdentifier() == OBJ_LINE) is only true if pObj is a SdrPathObj and not a E3dScene Change-Id: I30c91e57eb27141390c644dec42e2a4bee96edf0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105374 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/tabpages/transfrm.cxx')
-rw-r--r--cui/source/tabpages/transfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/tabpages/transfrm.cxx b/cui/source/tabpages/transfrm.cxx
index 42b17b553cc2..cec57ecbbbe7 100644
--- a/cui/source/tabpages/transfrm.cxx
+++ b/cui/source/tabpages/transfrm.cxx
@@ -860,7 +860,7 @@ void SvxPositionSizeTabPage::Construct()
if(1 == rMarkList.GetMarkCount())
{
const SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();
- const SdrObjKind eKind(static_cast<SdrObjKind>(pObj->GetObjIdentifier()));
+ const SdrObjKind eKind(pObj->GetObjIdentifier());
if((pObj->GetObjInventor() == SdrInventor::Default) &&
(OBJ_TEXT == eKind || OBJ_TITLETEXT == eKind || OBJ_OUTLINETEXT == eKind) &&