Question about function SwAttrSet::GetPresentation (sw/source/ui/utlui/attrdesc.cxx)

Miklos Vajna vmiklos at suse.cz
Wed Jun 20 00:51:43 PDT 2012


On Wed, Jun 20, 2012 at 09:17:16AM +0200, Tomaž Vajngerl <quikee at gmail.com> wrote:
> As far as I can see by just looking at this snippet of code this is
> needed because rText would be ", ... , ... , ..." instead of "... ,
> ... , ..." if you omit rText.Len() from the if statement. In other
> words.. the rText.Len() is to ensure you don't write comma at the
> beginning of rText.

BTW Julien, if you're interested --  wouldn't it be nicer to just use
comphelper::string::convertCommaSeparated() here?


More information about the LibreOffice mailing list