summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2017-12-01 00:59:33 +0100
committerMarco Cecchetti <mrcekets@gmail.com>2017-12-01 07:49:42 +0100
commit6735a653befce96423cef8a14d2016015eea2d5f (patch)
tree92cadf24656ea07ea53a4e5b50a45f2d2e4a8cd3
parent24f908d9a1833779497f36f9f006c29f47986571 (diff)
lok: calc: small fixes
For aligning with master Change-Id: I74cada5f50e88fc7c6ea0dfe78fdfab0d60a9af5 Reviewed-on: https://gerrit.libreoffice.org/45631 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com>
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.hxx2
-rw-r--r--sc/source/ui/view/tabview.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx
index 93c7e574ec57..8c83a4bde0ed 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.hxx
+++ b/include/LibreOfficeKit/LibreOfficeKit.hxx
@@ -447,7 +447,7 @@ public:
}
/**
- * Show/Hide a single row/column header outline for Calc dosuments.
+ * Show/Hide a single row/column header outline for Calc documents.
*
* @param bColumn - if we are dealing with a column or row group
* @param nLevel - the level to which the group belongs
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 59a9899d3bd6..7161edb75525 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -2665,14 +2665,14 @@ void lcl_createGroupsData(
rGroupsBuffer += ", ";
}
- int nGroupHidden = static_cast<int>(pEntry->IsHidden());
+ bool bGroupHidden = pEntry->IsHidden();
OUString aGroupData;
aGroupData += "{ \"level\": \"" + OUString::number(nLevel + 1) + "\", ";
aGroupData += "\"index\": \"" + OUString::number(nIndex) + "\", ";
aGroupData += "\"startPos\": \"" + OUString::number(rGroupStartPositions[nLevel]) + "\", ";
aGroupData += "\"endPos\": \"" + OUString::number(nTotalTwips) + "\", ";
- aGroupData += "\"hidden\": \"" + OUString::number(nGroupHidden) + "\" }";
+ aGroupData += "\"hidden\": \"" + OUString::number(bGroupHidden ? 1 : 0) + "\" }";
rGroupsBuffer += aGroupData;