summaryrefslogtreecommitdiff
path: root/cui/source/customize/macropg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/customize/macropg.cxx')
-rw-r--r--cui/source/customize/macropg.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx
index efffa6716992..cbeb45adba8c 100644
--- a/cui/source/customize/macropg.cxx
+++ b/cui/source/customize/macropg.cxx
@@ -466,10 +466,9 @@ IconLBoxString::IconLBoxString( const OUString& sText,
void IconLBoxString::Paint(const Point& aPos, SvTreeListBox& /*aDevice*/, vcl::RenderContext& rRenderContext,
const SvViewDataEntry* /*pView*/, const SvTreeListEntry& /*rEntry*/)
{
- OUString aTxt(GetText());
- if (!aTxt.isEmpty())
+ OUString aURL(GetText());
+ if (!aURL.isEmpty())
{
- OUString aURL(aTxt);
sal_Int32 nIndex = aURL.indexOf(aVndSunStarUNO);
bool bUNO = nIndex == 0;