[Libreoffice-commits] .: svx/source

Thorsten Behrens thorsten at kemper.freedesktop.org
Thu Apr 19 03:24:01 PDT 2012


 svx/source/svdraw/svdview.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit a763ef3c0cfdb1fd04528a393a44be508314072b
Author: Regina Henschel <rb.henschel at t-online.de>
Date:   Wed Apr 18 01:00:08 2012 +0200

    fdo#48473 Missing translation of local String constant
    
    Consolidated two occurences of the same string into macro
    (to prevent them to diverge again)

diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx
index 18237ce..ecfd6f4 100644
--- a/svx/source/svdraw/svdview.cxx
+++ b/svx/source/svdraw/svdview.cxx
@@ -1167,12 +1167,13 @@ Pointer SdrView::GetPreferedPointer(const Point& rMousePos, const OutputDevice*
     return Pointer(POINTER_ARROW);
 }
 
+#define STR_NOTHING "nothing"
 XubString SdrView::GetStatusText()
 {
     XubString aStr;
     XubString aName;
 
-    aStr.AppendAscii("nothing");
+    aStr.AppendAscii(STR_NOTHING);
 
     if (pAktCreate!=NULL)
     {
@@ -1267,7 +1268,7 @@ XubString SdrView::GetStatusText()
 #endif
     }
 
-    if(aStr.EqualsAscii("nix"))
+    if(aStr.EqualsAscii(STR_NOTHING))
     {
         if (AreObjectsMarked()) {
             ImpTakeDescriptionStr(STR_ViewMarked,aStr);


More information about the Libreoffice-commits mailing list