summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-10-30 16:00:03 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-03 16:37:31 +0100
commit69de44eb55f522d961dee53d7778e0e86adfc990 (patch)
tree17b78a14ada9af2b465a1f2b732e24124d62a343
parenta4225957dfcdfed525297683e988f8fa1948220d (diff)
ScTabView::getRowColumnHeaders: emit info about last formatted row/col
Change-Id: I6b4f6eacde84433fa3865e62c692a3f97895b887 (cherry picked from commit 3bdce53c557a1279e7e40d215e34405626bbc628)
-rw-r--r--sc/source/ui/view/tabview.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 4dccc9b4032a..a3718f62cd7e 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -2314,7 +2314,7 @@ OUString ScTabView::getRowColumnHeaders()
pDoc->GetTiledRenderingArea(aViewData.GetTabNo(), nEndCol, nEndRow);
boost::property_tree::ptree aRows;
- for (SCROW nRow = 0; nRow < nEndRow; ++nRow)
+ for (SCROW nRow = 0; nRow <= nEndRow; ++nRow)
{
boost::property_tree::ptree aRow;
sal_uInt16 nSize = pRowBar[SC_SPLIT_BOTTOM]->GetEntrySize(nRow);
@@ -2325,7 +2325,7 @@ OUString ScTabView::getRowColumnHeaders()
}
boost::property_tree::ptree aCols;
- for (SCCOL nCol = 0; nCol < nEndCol; ++nCol)
+ for (SCCOL nCol = 0; nCol <= nEndCol; ++nCol)
{
boost::property_tree::ptree aCol;
sal_uInt16 nSize = pColBar[SC_SPLIT_LEFT]->GetEntrySize(nCol);