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

List:       kde-commits
Subject:    Re: koffice/libs/kotext/opendocument
From:       Carlos Licea <carlos_licea () hotmail ! com>
Date:       2010-09-15 5:20:16
Message-ID: 201009142320.17096.carlos_licea () hotmail ! com
[Download RAW message or body]

> > SVN commit 1175336 by clicea:
> > 
> > Load properly the default cell style for the rows and columns on a table.
> > 
> >  M  +25 -2     KoTextLoader.cpp
> > 
> > --- trunk/koffice/libs/kotext/opendocument/KoTextLoader.cpp
> > #1175335:1175336 @@ -1200,6 +1200,15 @@
> > 
> >                              }
> >                          
> >                          }
> >                      
> >                      }
> > 
> > +
> > +                    QString defaultCellStyleName =
> > tblTag.attributeNS(KoXmlNS::table, "default-cell-style-name", ""); +
> > 
> >              if (!defaultCellStyleName.isEmpty()) {
> > 
> > +                        for (int c = columns; c < columns +
> > repeatColumn; c++) { +                            KoTableCellStyle
> > *cellStyle = d->textSharedData->tableCellStyle(defaultCellStyleName,
> > d->stylesDotXml); +                           
> > tcarManager->setDefaultColumnCellStyle(c, cellStyle); +                 
> >       }
> > +                    }
> 
> This can be optimized by getting the cellStyle outside of the loop and only
> setting it in the loop.
> 
Indeed, done.

-- 
Carlos Licea
[prev in list] [next in list] [prev in thread] [next in thread] 

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