[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kword
From:       Dirk Mueller <mueller () kde ! org>
Date:       2003-05-18 13:33:03
[Download RAW message or body]

CVS commit by mueller: 

QCString termination fixes
CCMAIL: 58635-done@bugs.kde.org


  M +1 -1      kwdrag.cc   1.21
  M +2 -2      kwtextframeset.cc   1.711
  M +3 -3      kwview.cc   1.959


--- koffice/kword/kwdrag.cc  #1.20:1.21
@@ -80,5 +80,5 @@ int KWTextDrag::decodeFrameSetNumber( QM
     QByteArray a =  e->encodedData("application/x-kword-framesetnumber");
     if(!a.isEmpty())
-        return QCString(a).toInt();
+        return QCString(a, a.size()+1 ).toInt();
     else
         return -1;

--- koffice/kword/kwtextframeset.cc  #1.710:1.711
@@ -2975,5 +2975,5 @@ void KWTextFrameSetEdit::paste()
         if ( arr.size() )
         {
-            KCommand *cmd =textFrameSet()->pasteKWord( cursor(), QCString( arr ), \
true ); +            KCommand *cmd =textFrameSet()->pasteKWord( cursor(), QCString( \
arr, arr.size()+1 ), true );  if ( cmd )
                 frameSet()->kWordDocument()->addCommand(cmd);
@@ -3341,5 +3341,5 @@ void KWTextFrameSetEdit::dropEvent( QDro
             if ( arr.size() )
             {
-                KCommand *cmd=textFrameSet()->pasteKWord( cursor(), QCString(arr), \
false ); +                KCommand *cmd=textFrameSet()->pasteKWord( cursor(), \
QCString(arr, arr.size()+1 ), false );  if ( cmd )
                 {

--- koffice/kword/kwview.cc  #1.958:1.959
@@ -6903,5 +6903,5 @@ void KWView::convertTableToText()
                     if ( edit && edit->textFrameSet())
                     {
-                        KCommand *cmd =edit->textFrameSet()->pasteKWord( \
edit->cursor(), QCString( arr ), true ); +                        KCommand *cmd \
=edit->textFrameSet()->pasteKWord( edit->cursor(), QCString( arr , arr.count()), true \
);  if ( cmd )
                             macro->addCommand( cmd);
@@ -6949,5 +6949,5 @@ void KWView::convertToTextBox()
                 if ( arr.size() )
                 {
-                    cmd =edit->textFrameSet()->pasteKWord( \
edit->textView()->cursor(), QCString( arr ), true ); +                    cmd \
=edit->textFrameSet()->pasteKWord( edit->textView()->cursor(), QCString( arr, \
arr.size()+1 ), true );  if ( cmd )
                     {
@@ -6987,5 +6987,5 @@ void KWView::sortText()
                     if ( arr.size() )
                     {
-                        KCommand *cmd =edit->textFrameSet()->pasteKWord( \
edit->cursor(), QCString( arr ), true ); +                        KCommand *cmd \
=edit->textFrameSet()->pasteKWord( edit->cursor(), QCString( arr , arr.size()+1), \
true );  if ( cmd )
                             m_doc->addCommand(cmd);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic