[Libreoffice] Wrong cast to css.table.BorderLine2

Cedric Bosdonnat cedric.bosdonnat.ooo at free.fr
Wed Jan 25 00:48:45 PST 2012


Hi Stephan,

On Mon, 2012-01-23 at 21:41 +0100, Stephan Bergmann wrote:

> where borderline.cxx:128
>    >     const table::BorderLine2& rBorder2 = static_cast< const 
> table::BorderLine2& >( rStruct );
> 
> erroneously treats a BorderLine contained in a TableBorder (created at 
> afmtuno.cxx:776) as a derived BorderLine2.  That cast seemingly got in with
> 
> > commit 89d3e8a8424ce44404a554812e5136452bb8cb60
> > Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
> > Date:   Fri Dec 24 10:00:15 2010 +0100
> >
> >     Switching the order of the SetLinesWidth arguments

Hum, I'll have a look at that... but my problem with BorderLine and
BorderLine2 is that the second one should be used everywhere... and that
sometimes isn't the case. If only we could extend existing published UNO
types instead of specializing these.

--
Cedric



More information about the LibreOffice mailing list