summaryrefslogtreecommitdiff
path: root/sc
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-10-30 16:21:19 +0100
commit3bdce53c557a1279e7e40d215e34405626bbc628 (patch)
tree76573208c86ef245402603f7a301e82bc58e04fd /sc
parent18bf71a2002b979dbf80d85c8863af39783bf87d (diff)
ScTabView::getRowColumnHeaders: emit info about last formatted row/col
Change-Id: I6b4f6eacde84433fa3865e62c692a3f97895b887
Diffstat (limited to 'sc')
-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 f35500ca76b1..7254ff93ecfe 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -2290,7 +2290,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);
@@ -2301,7 +2301,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);