[Libreoffice-commits] core.git: sw/inc
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Mon Sep 23 14:04:57 UTC 2019
sw/inc/swrect.hxx | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
New commits:
commit 8bb3c1143755930a02c3ebeb3425ace94884374a
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Sep 23 13:42:51 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Sep 23 16:04:00 2019 +0200
Improve SwRect (debug) printing
e.g. SwVisibleCursor::SetPosAndShow in sw/source/core/crsr/viscrs.cxx has
legitimate calls to SSize() and Pos() of an SwRect for which IsEmpty() is true,
so don't hide those values by just printing "EMPTY"
Change-Id: I8240ed1cf8cbd2bca9caf599192250f0292eaeba
Reviewed-on: https://gerrit.libreoffice.org/79403
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/sw/inc/swrect.hxx b/sw/inc/swrect.hxx
index 24f87ed58fce..69b1f2ad781a 100644
--- a/sw/inc/swrect.hxx
+++ b/sw/inc/swrect.hxx
@@ -335,10 +335,9 @@ inline std::basic_ostream<charT, traits> & operator <<(
std::basic_ostream<charT, traits> & stream, const SwRect& rectangle )
{
if (rectangle.IsEmpty())
- return stream << "EMPTY";
- else
- return stream << rectangle.SSize()
- << "@(" << rectangle.Pos() << ")";
+ stream << "EMPTY:";
+ return stream << rectangle.SSize()
+ << "@(" << rectangle.Pos() << ")";
}
#endif // INCLUDED_SW_INC_SWRECT_HXX
More information about the Libreoffice-commits
mailing list