diff options
-rw-r--r-- | compilerplugins/clang/unusedenumconstants.readonly.results | 2 | ||||
-rw-r--r-- | include/svx/svdedtv.hxx | 3 | ||||
-rw-r--r-- | svx/source/svdraw/svdedtv.cxx | 6 |
3 files changed, 2 insertions, 9 deletions
diff --git a/compilerplugins/clang/unusedenumconstants.readonly.results b/compilerplugins/clang/unusedenumconstants.readonly.results index bbb57be316e4..a54619908b6d 100644 --- a/compilerplugins/clang/unusedenumconstants.readonly.results +++ b/compilerplugins/clang/unusedenumconstants.readonly.results @@ -492,8 +492,6 @@ include/svx/ruler.hxx:60 enum SvxRulerDragFlags OBJECT_LEFT_INDENT_ONLY include/svx/sdtakitm.hxx:31 enum SdrTextAniKind Blink -include/svx/svdedtv.hxx:65 - enum SdrInsertFlags NOBROADCAST include/svx/svdhdl.hxx:108 enum BitmapMarkerKind RectPlus_7x7 include/svx/svdograf.hxx:52 diff --git a/include/svx/svdedtv.hxx b/include/svx/svdedtv.hxx index 6fc2e1aab75f..af60deaac0f6 100644 --- a/include/svx/svdedtv.hxx +++ b/include/svx/svdedtv.hxx @@ -62,11 +62,10 @@ enum class SdrInsertFlags ADDMARK = 0x0002, /* object will be added an existing selection */ SETDEFATTR = 0x0004, /* actual attributes (+StyleSheet) are assigned to the object */ SETDEFLAYER = 0x0008, /* actual layer is assigned to the object */ - NOBROADCAST = 0x0010, /* insert with NbcInsertObject() for SolidDragging */ }; namespace o3tl { - template<> struct typed_flags<SdrInsertFlags> : is_typed_flags<SdrInsertFlags, 0x1f> {}; + template<> struct typed_flags<SdrInsertFlags> : is_typed_flags<SdrInsertFlags, 0x0f> {}; } class SVX_DLLPUBLIC SdrEditView : public SdrMarkView diff --git a/svx/source/svdraw/svdedtv.cxx b/svx/source/svdraw/svdedtv.cxx index 2197c3fbc42e..a3b20b853068 100644 --- a/svx/source/svdraw/svdedtv.cxx +++ b/svx/source/svdraw/svdedtv.cxx @@ -971,11 +971,7 @@ bool SdrEditView::InsertObjectAtView(SdrObject* pObj, SdrPageView& rPV, SdrInser pObj->SetMergedItemSet(maDefaultAttr); } if (!pObj->IsInserted()) { - if (nOptions & SdrInsertFlags::NOBROADCAST) { - rPV.GetObjList()->NbcInsertObject(pObj, SAL_MAX_SIZE); - } else { - rPV.GetObjList()->InsertObject(pObj, SAL_MAX_SIZE); - } + rPV.GetObjList()->InsertObject(pObj, SAL_MAX_SIZE); } if( IsUndoEnabled() ) AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoNewObject(*pObj)); |