summaryrefslogtreecommitdiff
path: root/sc/source/core/data
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-12-07 17:32:09 +0100
committerEike Rathke <erack@redhat.com>2014-12-07 17:39:34 +0100
commitec1b1af8af7ead149f96c09e16402e66e0973372 (patch)
tree5e1fff5a429bd8cf62632cae3273b0f23155301b /sc/source/core/data
parent3f28f67084f12fd806e05020ed8bac8d5a05c025 (diff)
add ReorderParam.mbHasHeaders to include in Undo range mark
Undo Sort did not select/mark the original range if it included header row/column. Change-Id: Ie4c800e7a44fd910c871731673093400c6400e4a
Diffstat (limited to 'sc/source/core/data')
-rw-r--r--sc/source/core/data/table3.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 99813566074a..04e9d08378e7 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -1689,6 +1689,7 @@ void ScTable::Sort(
pUndo->mbPattern = rSortParam.bIncludePattern;
pUndo->mbHiddenFiltered = bKeepQuery;
pUndo->mbUpdateRefs = bUpdateRefs;
+ pUndo->mbHasHeaders = rSortParam.bHasHeader;
}
// Trim empty leading and trailing column ranges.