diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2023-03-17 14:28:36 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2023-03-21 23:10:39 +0000 |
commit | 1cfeb4bd8ce7f7727a81136bd3e2d6ebea976895 (patch) | |
tree | 939ab8cd82c9cfb3ab39e3ab7a8d064378bd7415 /sc/source/ui/drawfunc/fusel.cxx | |
parent | f460bd163afb06dc2dccc877269106af38767484 (diff) |
sc drawstyles: Handle style commands and undo
Change-Id: Ibd81f7aba9ef2efca89556c31cd9b09867419d0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149203
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sc/source/ui/drawfunc/fusel.cxx')
-rw-r--r-- | sc/source/ui/drawfunc/fusel.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/ui/drawfunc/fusel.cxx b/sc/source/ui/drawfunc/fusel.cxx index 03fb8c4c86f5..2fd8a9dc3fd6 100644 --- a/sc/source/ui/drawfunc/fusel.cxx +++ b/sc/source/ui/drawfunc/fusel.cxx @@ -46,6 +46,7 @@ #include <charthelper.hxx> #include <docuno.hxx> #include <docsh.hxx> +#include <stlpool.hxx> // maximal permitted mouse movement to start Drag&Drop //! fusel,fuconstr,futext - combine them! @@ -440,6 +441,13 @@ bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) } } } + + if (SC_MOD()->GetIsWaterCan()) + { + auto pStyleSheet = rViewData.GetDocument().GetStyleSheetPool()->GetActualStyleSheet(); + if (pStyleSheet && pStyleSheet->GetFamily() == SfxStyleFamily::Frame) + pView->SetStyleSheet(static_cast<SfxStyleSheet*>(pStyleSheet), false); + } } // maybe consider OLE object |