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

List:       koffice-devel
Subject:    Re: Bug or feature: KWord's tabulators need to be sorted
From:       Nicolas Goutte <nicog () snafu ! de>
Date:       2002-03-21 19:27:34
[Download RAW message or body]

It works with the patch, thank you!

I am glad that this needs only a small change, as it is just for one file. 
However the file is in the AbiWord Test Suite. :-(

Have a nice day/evening/night!

On Wednesday 20 March 2002 23:10, David Faure wrote:
> On Wednesday 20 March 2002 22:47, Nicolas Goutte wrote:
> > While working on import tabulator definitions ( <TABULATOR> ) from
> > AbiWord into KWord, I have found that KWord does not sort the tabulators.
> >
> > Is this a feature or a bug?
>
> You decide ;) It wasn't done, but it can very easily be done.
> Please test this patch.
>
> cvs diff kwtextparag.cc
> Index: kwtextparag.cc
> ===================================================================
> RCS file: /home/kde/koffice/kword/kwtextparag.cc,v
> retrieving revision 1.195
> diff -u -p -r1.195 kwtextparag.cc
> --- kwtextparag.cc      2002/03/18 17:04:03     1.195
> +++ kwtextparag.cc      2002/03/20 22:09:39
> @@ -692,6 +692,7 @@ KoParagLayout KWTextParag::loadParagLayo
>              tabList.append( tab );
>          }
>      }
> +    qHeapSort( tabList );
>      layout.setTabList( tabList );
>      layout.alignment = Qt::AlignLeft;
>      element = parentElem.namedItem( "FLOW" ).toElement(); // Flow is what
> is now called alignment internally

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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