diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-05-19 16:32:11 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2021-01-07 16:32:56 +0100 |
commit | 57af4bc4c26acff48a3c6b7606135130cc980a70 (patch) | |
tree | 44c1fde48071c454f089380f7ebde4560d54eb1c /chart2 | |
parent | 33b83f47a3101bc1c7b0622487cf523e6b5cf076 (diff) |
chart2: avoid assert on SvxAdjustItem with WhichId 0
Insert a chart, then insert a rhombus shape into the chart:
svl/source/items/itemset.cxx:150: SfxItemSet::SfxItemSet(SfxItemPool&,
std::initializer_list<SfxItemSet::Pair>): Assertion
`svl::detail::validRange(p.wid1, p.wid2)' failed.
Presumably this item doesn't actually do anything since it was added
in
2009 in commit 4d3c143900d87f23cb4e66f1ebf9e0dae0541e0f
Alternatively it could be EE_PARA_JUST perhaps? but not sure if that
can
always be used.
Change-Id: Ia1addb1095714acafe7db596ece4b9a706354d34
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94537
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/DrawCommandDispatch.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/chart2/source/controller/main/DrawCommandDispatch.cxx b/chart2/source/controller/main/DrawCommandDispatch.cxx index e8230b1d2eab..286dd713c340 100644 --- a/chart2/source/controller/main/DrawCommandDispatch.cxx +++ b/chart2/source/controller/main/DrawCommandDispatch.cxx @@ -157,7 +157,6 @@ void DrawCommandDispatch::setAttributes( SdrObject* pObj ) } if ( !bAttributesAppliedFromGallery ) { - pObj->SetMergedItem( SvxAdjustItem( SvxAdjust::Center, 0 ) ); pObj->SetMergedItem( SdrTextVertAdjustItem( SDRTEXTVERTADJUST_CENTER ) ); pObj->SetMergedItem( SdrTextHorzAdjustItem( SDRTEXTHORZADJUST_BLOCK ) ); pObj->SetMergedItem( makeSdrTextAutoGrowHeightItem( false ) ); |