summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdotxdr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdotxdr.cxx')
-rw-r--r--svx/source/svdraw/svdotxdr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdotxdr.cxx b/svx/source/svdraw/svdotxdr.cxx
index 95a419b36362..004453006a86 100644
--- a/svx/source/svdraw/svdotxdr.cxx
+++ b/svx/source/svdraw/svdotxdr.cxx
@@ -200,7 +200,7 @@ bool SdrTextObj::MovCreate(SdrDragStat& rStat)
maRect = aRect1; // for ObjName
SetBoundRectDirty();
bSnapRectDirty=true;
- if (HAS_BASE(SdrRectObj,this)) {
+ if (dynamic_cast<const SdrRectObj *>(this) != nullptr) {
static_cast<SdrRectObj*>(this)->SetXPolyDirty();
}
return true;
@@ -214,7 +214,7 @@ bool SdrTextObj::EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd)
AdaptTextMinSize();
SetRectsDirty();
- if (HAS_BASE(SdrRectObj,this)) {
+ if (dynamic_cast<const SdrRectObj *>(this) != nullptr) {
static_cast<SdrRectObj*>(this)->SetXPolyDirty();
}
return (eCmd==SDRCREATE_FORCEEND || rStat.GetPointAnz()>=2);