diff options
author | Balazs Santha <santha.balazs@simonyi.bme.hu> | 2021-06-18 14:14:04 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-06-18 19:23:45 +0200 |
commit | 840095f417af6619977f688f421e449273c26cae (patch) | |
tree | e6eaa7a1824d5de76617315b1add9760e13ed6b5 /sw/source/uibase | |
parent | e48463e81c7eb9a3938128b642d153917fcbbdae (diff) |
tdf#109083 sw table styles: fix missing format update of tables
at table (cell) selection.
Table styles (implemented as table templates yet) allows
to format all tables (with the same table style) at once.
Unfortunately, this worked only without table selection,
putting the text cursor in a table cell. But if a table
cell/row/column or the whole table was selected (e.g. after
changing its format), Manage Styles(F11)->Table Styles->
Style actions menu (see top-right corner of the pane)->
Update Selected Style updated only the style, but it
doesn't propagate the changes to the other tables with
the same table style. This patch removes the selection to
fix the problem in the same way, as the proposed workaround.
Note: this fixes the usage of the user-defined table styles,
too (created by Style actions->New Style from Selection).
Change-Id: I58d01036d5a11e522407405e9ebc16c2c3c83e9b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117079
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/app/docst.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx index b9ab297aef78..0f196fcdf0a7 100644 --- a/sw/source/uibase/app/docst.cxx +++ b/sw/source/uibase/app/docst.cxx @@ -1338,7 +1338,10 @@ void SwDocShell::UpdateStyle(const OUString &rName, SfxStyleFamily nFamily, SwWr break; case SfxStyleFamily::Table: { - + if(GetFEShell()->IsTableMode()) + { + GetFEShell()->TableCursorToCursor(); + } SwTableAutoFormat aFormat(rName); if (pCurrWrtShell->GetTableAutoFormat(aFormat)) { |