summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-08-07 13:39:26 +0200
committerNoel Grandin <noel@peralex.com>2013-08-12 11:56:48 +0200
commit8129fffd1beefbc2844fcf3912c65290ce657d79 (patch)
tree11297602318e1eaa8e9b9503efd4903f979f7bde /vcl/source/gdi
parente4ebe80be51fb33545091aa4f0bbc0ea2fe674f0 (diff)
convert XubString to OUString in VCL
Change-Id: I5002b4c237dd919210cb7edfef9f552688735154
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/print2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx
index 71fd31981ffb..4eaa1d6fc9fe 100644
--- a/vcl/source/gdi/print2.cxx
+++ b/vcl/source/gdi/print2.cxx
@@ -556,7 +556,7 @@ static Rectangle ImplCalcActionBounds( const MetaAction& rAct, const OutputDevic
const OUString aString( rTextAct.GetText().copy(rTextAct.GetIndex(), rTextAct.GetLen()) );
const sal_Int32 nLen = aString.getLength();
- if( nLen )
+ if( !aString.isEmpty() )
{
// #105987# ImplLayout takes everything in logical coordinates
SalLayout* pSalLayout = rOut.ImplLayout( rTextAct.GetText(), rTextAct.GetIndex(),
@@ -587,7 +587,7 @@ static Rectangle ImplCalcActionBounds( const MetaAction& rAct, const OutputDevic
// OutDev::DrawStretchText() code. Unfortunately, also in
// this case, public outdev methods such as GetTextWidth()
// don't provide enough info.
- if( nLen )
+ if( !aString.isEmpty() )
{
// #105987# ImplLayout takes everything in logical coordinates
SalLayout* pSalLayout = rOut.ImplLayout( rTextAct.GetText(), rTextAct.GetIndex(),