[Libreoffice-commits] .: sw/source

Caolán McNamara caolan at kemper.freedesktop.org
Tue Jun 28 01:16:04 PDT 2011


 sw/source/ui/docvw/edtwin2.cxx |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

New commits:
commit d94eed0660919412a19c09bc7964696babc2122a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jun 27 23:49:21 2011 +0100

    CreateFromDouble->valueOf

diff --git a/sw/source/ui/docvw/edtwin2.cxx b/sw/source/ui/docvw/edtwin2.cxx
index 3a39e2c..a7fefac 100644
--- a/sw/source/ui/docvw/edtwin2.cxx
+++ b/sw/source/ui/docvw/edtwin2.cxx
@@ -150,8 +150,8 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
 
         if( rSh.GetContentAtPos( aPos, aCntntAtPos, sal_False, &aFldRect ) )
         {
-             sal_uInt16 nStyle = 0; // style of quick help
-             switch( aCntntAtPos.eCntntAtPos )
+            sal_uInt16 nStyle = 0; // style of quick help
+            switch( aCntntAtPos.eCntntAtPos )
             {
             case SwContentAtPos::SW_TABLEBOXFML:
                 sTxt.AssignAscii( RTL_CONSTASCII_STRINGPARAM( "= " ));
@@ -160,10 +160,9 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
 #if OSL_DEBUG_LEVEL > 1
             case SwContentAtPos::SW_TABLEBOXVALUE:
             {
-                sTxt = UniString(
-                            ByteString::CreateFromDouble(
-                                ((SwTblBoxValue*)aCntntAtPos.aFnd.pAttr)->GetValue()  )
-                            , gsl_getSystemTextEncoding());
+                sTxt = rtl::OStringToOUString(rtl::OString::valueOf(
+                            ((SwTblBoxValue*)aCntntAtPos.aFnd.pAttr)->GetValue()),
+                            gsl_getSystemTextEncoding());
             }
             break;
             case SwContentAtPos::SW_CURR_ATTRS:


More information about the Libreoffice-commits mailing list