[Libreoffice-commits] .: svx/source

Lior Kaplan kaplan at kemper.freedesktop.org
Sat Jan 7 11:35:42 PST 2012


 svx/source/items/pageitem.cxx |   14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

New commits:
commit ba759d70ba84280ef5d25f644357e04471bffab9
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Sat Jan 7 21:32:21 2012 +0200

    Add a missing space in the format -> page -> organizer tab

diff --git a/svx/source/items/pageitem.cxx b/svx/source/items/pageitem.cxx
index b67d01f..cd9fef7 100644
--- a/svx/source/items/pageitem.cxx
+++ b/svx/source/items/pageitem.cxx
@@ -136,7 +136,12 @@ SfxItemPresentation SvxPageItem::GetPresentation
                 rText += SVX_RESSTR(RID_SVXITEMS_PAGE_LAND_TRUE);
             else
                 rText += SVX_RESSTR(RID_SVXITEMS_PAGE_LAND_FALSE);
-            rText += GetUsageText( eUse );
+            String aUsageText = GetUsageText( eUse );
+            if (aUsageText.Len())
+            {
+                rText += cpDelim;
+                rText += aUsageText;
+            }
             return SFX_ITEM_PRESENTATION_NAMELESS;
         }
         case SFX_ITEM_PRESENTATION_COMPLETE:
@@ -154,7 +159,12 @@ SfxItemPresentation SvxPageItem::GetPresentation
                 rText += SVX_RESSTR(RID_SVXITEMS_PAGE_LAND_TRUE);
             else
                 rText += SVX_RESSTR(RID_SVXITEMS_PAGE_LAND_FALSE);
-            rText += GetUsageText( eUse );
+            String aUsageText = GetUsageText( eUse );
+            if (aUsageText.Len())
+            {
+                rText += cpDelim;
+                rText += aUsageText;
+            }
             return SFX_ITEM_PRESENTATION_COMPLETE;
         }
         default: ;//prevent warning


More information about the Libreoffice-commits mailing list