[Libreoffice-commits] core.git: reportdesign/source
Stephan Bergmann
sbergman at redhat.com
Thu Sep 28 09:29:48 UTC 2017
reportdesign/source/core/api/FixedLine.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit dbb5a5a2f429b7d05a6e69ab17b0a3022a97ac64
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Sep 28 11:29:09 2017 +0200
Replace fancy Unicode in exception message
...with something more prosaic and ASCII
Change-Id: I4a927cec15abb7c00f39a6a298a13f192f34c631
diff --git a/reportdesign/source/core/api/FixedLine.cxx b/reportdesign/source/core/api/FixedLine.cxx
index 3b79e32d785f..e9aea2c5a936 100644
--- a/reportdesign/source/core/api/FixedLine.cxx
+++ b/reportdesign/source/core/api/FixedLine.cxx
@@ -510,11 +510,10 @@ awt::Size SAL_CALL OFixedLine::getSize( )
void SAL_CALL OFixedLine::setSize( const awt::Size& aSize )
{
- const OUString hundredthmm(u"0\u2009\u00B5m"); // 0, thin space, ยต (micro), m (meter)
if ( aSize.Width < MIN_WIDTH && m_nOrientation == 1 )
- throw beans::PropertyVetoException("Too small width for FixedLine; minimum is " + OUString::number(MIN_WIDTH) + hundredthmm, static_cast<cppu::OWeakObject*>(this));
+ throw beans::PropertyVetoException("Too small width for FixedLine; minimum is " + OUString::number(MIN_WIDTH) + "0 micrometer", static_cast<cppu::OWeakObject*>(this));
else if ( aSize.Height < MIN_HEIGHT && m_nOrientation == 0 )
- throw beans::PropertyVetoException("Too small height for FixedLine; minimum is " + OUString::number(MIN_HEIGHT) + hundredthmm, static_cast<cppu::OWeakObject*>(this));
+ throw beans::PropertyVetoException("Too small height for FixedLine; minimum is " + OUString::number(MIN_HEIGHT) + "0 micrometer", static_cast<cppu::OWeakObject*>(this));
OShapeHelper::setSize(aSize,this);
}
More information about the Libreoffice-commits
mailing list