[Libreoffice-commits] core.git: sw/source

Justin Luth justin_luth at sil.org
Thu Oct 1 01:06:46 PDT 2015


 sw/source/uibase/shells/textsh1.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit c1e0a697a70872ef1b6deaf5222538899554221b
Author: Justin Luth <justin_luth at sil.org>
Date:   Wed Sep 30 18:20:12 2015 +0300

    replace hardcoded string with STR_YIELDS
    
    Change-Id: I7e72f4e16744b6750a57d66e768103ffc11fc352
    Reviewed-on: https://gerrit.libreoffice.org/19036
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index 3aef579..6b816ce 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -115,6 +115,7 @@
 #include <svx/nbdtmgfact.hxx>
 #include <svx/nbdtmg.hxx>
 #include <SwRewriter.hxx>
+#include <comcore.hrc>
 #include <svx/svdmodel.hxx>
 #include <svx/drawitem.hxx>
 #include <numrule.hxx>
@@ -305,7 +306,7 @@ void SwTextShell::Execute(SfxRequest &rReq)
             {
                 SwRewriter aRewriter;
                 aRewriter.AddRule( UndoArg1, aToggle.StringToReplace() );
-                aRewriter.AddRule( UndoArg2, "->" );
+                aRewriter.AddRule( UndoArg2, SW_RES(STR_YIELDS) );
                 aRewriter.AddRule( UndoArg3, sReplacement );
                 rWrtSh.StartUndo(UNDO_REPLACE, &aRewriter);
                 rWrtSh.GetCrsr()->Normalize(false);


More information about the Libreoffice-commits mailing list