[Libreoffice-commits] core.git: sc/inc

Tor Lillqvist tml at collabora.com
Tue Aug 29 12:18:57 UTC 2017


 sc/inc/address.hxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 3878c4725f0f5ce849f8a0482e3efba361599a42
Author: Tor Lillqvist <tml at collabora.com>
Date:   Tue Aug 29 15:13:49 2017 +0300

    Use 1-based numbers in the ScAddress debugging output operator <<
    
    Change-Id: If9f685bc504d9da8011c1788dfb90dc29b86e9ea

diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx
index 0adeaa705861..bc585a359422 100644
--- a/sc/inc/address.hxx
+++ b/sc/inc/address.hxx
@@ -367,9 +367,9 @@ template<typename charT, typename traits>
 inline std::basic_ostream<charT, traits> & operator <<(std::basic_ostream<charT, traits> & stream, const ScAddress& rAddress)
 {
     stream <<
-        rAddress.Tab() << "!" <<
-        "R" << rAddress.Row() <<
-        "C" << rAddress.Col();
+        rAddress.Tab()+1 << "!"
+        "R" << rAddress.Row()+1 <<
+        "C" << rAddress.Col()+1;
 
     return stream;
 }


More information about the Libreoffice-commits mailing list