commit 0bd7a6384bf24e8fb2ccf3acf9a4e84a875f1215
Author: Juergen Spitzmueller <[email protected]>
Date:   Mon Jul 23 16:36:19 2018 +0200

    Allow to change multiple columns' width at once
    
    Fixes: #11205
    (cherry picked from commit 91254472e601d573057bd943aed5de36d6fb9438)
---
 src/insets/InsetTabular.cpp |   12 ++++++------
 status.23x                  |    2 ++
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 3d69ed9..ff9f5f2 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -5559,10 +5559,12 @@ void InsetTabular::tabularFeatures(Cursor & cur,
 
        case Tabular::SET_PWIDTH: {
                Length const len(value);
-               tabular.setColumnPWidth(cur, cur.idx(), len);
-               if (len.zero()
-                   && tabular.getAlignment(cur.idx(), true) == LYX_ALIGN_BLOCK)
-                       tabularFeatures(cur, Tabular::ALIGN_CENTER, string());
+               for (col_type c = sel_col_start; c <= sel_col_end; ++c) {
+                       tabular.setColumnPWidth(cur, tabular.cellIndex(row, c), 
len);
+                       if (len.zero()
+                           && tabular.getAlignment(tabular.cellIndex(row, c), 
true) == LYX_ALIGN_BLOCK)
+                               tabularFeatures(cur, Tabular::ALIGN_CENTER, 
string());
+               }
                break;
        }
 
@@ -5926,8 +5928,6 @@ void InsetTabular::tabularFeatures(Cursor & cur,
                tabular.longtabular_alignment = 
Tabular::LYX_LONGTABULAR_ALIGN_RIGHT;
                break;
 
-
-
        case Tabular::SET_ROTATE_CELL:
                for (row_type r = sel_row_start; r <= sel_row_end; ++r)
                        for (col_type c = sel_col_start; c <= sel_col_end; ++c)
diff --git a/status.23x b/status.23x
index ef9ee2c..c5b23bf 100644
--- a/status.23x
+++ b/status.23x
@@ -43,6 +43,8 @@ What's new
 
 - Unify capitalzation in dialog (bug 11237).
 
+- Allow to change multiple table columns' width at once (bug 11205).
+
 
 * DOCUMENTATION AND LOCALIZATION
 

Reply via email to