Blame SOURCES/0255-ScTabView-getRowColumnHeaders-emit-info-about-last-f.patch

135360
From d9521709e35a62c5e56d099d49bad5316bc394c4 Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Fri, 30 Oct 2015 16:00:03 +0100
135360
Subject: [PATCH 255/398] ScTabView::getRowColumnHeaders: emit info about last
135360
 formatted row/col
135360
135360
Change-Id: I6b4f6eacde84433fa3865e62c692a3f97895b887
135360
(cherry picked from commit 3bdce53c557a1279e7e40d215e34405626bbc628)
135360
---
135360
 sc/source/ui/view/tabview.cxx | 4 ++--
135360
 1 file changed, 2 insertions(+), 2 deletions(-)
135360
135360
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
135360
index 4dccc9b4032a..a3718f62cd7e 100644
135360
--- a/sc/source/ui/view/tabview.cxx
135360
+++ b/sc/source/ui/view/tabview.cxx
135360
@@ -2314,7 +2314,7 @@ OUString ScTabView::getRowColumnHeaders()
135360
     pDoc->GetTiledRenderingArea(aViewData.GetTabNo(), nEndCol, nEndRow);
135360
 
135360
     boost::property_tree::ptree aRows;
135360
-    for (SCROW nRow = 0; nRow < nEndRow; ++nRow)
135360
+    for (SCROW nRow = 0; nRow <= nEndRow; ++nRow)
135360
     {
135360
         boost::property_tree::ptree aRow;
135360
         sal_uInt16 nSize = pRowBar[SC_SPLIT_BOTTOM]->GetEntrySize(nRow);
135360
@@ -2325,7 +2325,7 @@ OUString ScTabView::getRowColumnHeaders()
135360
     }
135360
 
135360
     boost::property_tree::ptree aCols;
135360
-    for (SCCOL nCol = 0; nCol < nEndCol; ++nCol)
135360
+    for (SCCOL nCol = 0; nCol <= nEndCol; ++nCol)
135360
     {
135360
         boost::property_tree::ptree aCol;
135360
         sal_uInt16 nSize = pColBar[SC_SPLIT_LEFT]->GetEntrySize(nCol);
135360
-- 
135360
2.12.0
135360