diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2023-04-19 17:19:13 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2023-04-20 14:11:42 +0200 |
commit | 0ed12710d743e12501292d688caf6e4a72f16376 (patch) | |
tree | e917e3f808feb8baa4ed215757ea855107be94dc /sc | |
parent | 6c0ce7f7124ea7d91eada9a544c52235770fa255 (diff) |
sc drawstyles: Avoid styles for detective shapes
Those are fixed shapes with fixed formatting, and not
supposed to be changed by the user (with the exception of
their color via Tools > Options... > LibreOffice > AC, but
that is a user profile setting, not a document formatting).
So we need to undo the setting of the default style, which
happens by default for all created shapes.
Change-Id: Id48b4e9fb9b84008f154a7277f17ec00156ccc76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150659
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/detfunc.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx index 4ec4d4349918..ac2c477b0210 100644 --- a/sc/source/core/tool/detfunc.cxx +++ b/sc/source/core/tool/detfunc.cxx @@ -370,6 +370,7 @@ void ScDetectiveFunc::InsertArrow( SCCOL nCol, SCROW nRow, *pModel, aRect); + pBox->NbcSetStyleSheet(nullptr, true); pBox->SetMergedItemSetAndBroadcast(rData.GetBoxSet()); pBox->SetLayer( SC_LAYER_INTERN ); @@ -413,6 +414,7 @@ void ScDetectiveFunc::InsertArrow( SCCOL nCol, SCROW nRow, *pModel, SdrObjKind::Line, basegfx::B2DPolyPolygon(aTempPoly)); + pArrow->NbcSetStyleSheet(nullptr, true); pArrow->NbcSetLogicRect(tools::Rectangle::Normalize(aStartPos,aEndPos)); //TODO: needed ??? pArrow->SetMergedItemSetAndBroadcast(rAttrSet); @@ -447,6 +449,7 @@ void ScDetectiveFunc::InsertToOtherTab( SCCOL nStartCol, SCROW nStartRow, *pModel, aRect); + pBox->NbcSetStyleSheet(nullptr, true); pBox->SetMergedItemSetAndBroadcast(rData.GetBoxSet()); pBox->SetLayer( SC_LAYER_INTERN ); @@ -482,6 +485,7 @@ void ScDetectiveFunc::InsertToOtherTab( SCCOL nStartCol, SCROW nStartRow, *pModel, SdrObjKind::Line, basegfx::B2DPolyPolygon(aTempPoly)); + pArrow->NbcSetStyleSheet(nullptr, true); pArrow->NbcSetLogicRect(tools::Rectangle::Normalize(aStartPos,aEndPos)); //TODO: needed ??? pArrow->SetMergedItemSetAndBroadcast(rAttrSet); @@ -554,6 +558,7 @@ void ScDetectiveFunc::DrawCircle( SCCOL nCol, SCROW nRow, ScDetectiveData& rData aRect); SfxItemSet& rAttrSet = rData.GetCircleSet(); + pCircle->NbcSetStyleSheet(nullptr, true); pCircle->SetMergedItemSetAndBroadcast(rAttrSet); pCircle->SetLayer( SC_LAYER_INTERN ); |