--===============0031600712== Content-Type: multipart/alternative; boundary=000e0cd29ed879dc32046ee710e8 --000e0cd29ed879dc32046ee710e8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Fri, Jul 17, 2009 at 2:41 PM, Sven Langkamp wrote: > On Fri, Jul 17, 2009 at 1:48 PM, Thomas Zander wrote: > >> On Friday 03 July 2009 03:43:16 Sven Langkamp wrote: >> > Hi, >> > >> > in the ongoing plugfest testing an issue where text appeared with >> underline >> > and line-through in OOo has been found. >> > For details see >> > >> http://plugtest.opendocsociety.org/doku.php?id=scenarios:20090623:presentat >> >ion-placeholder >> > >> > I found out that the character style is loads with line type single if >> the >> > specified line type is empty and the style is "none" >> > I have attached a patch to change it to load as NoLineType. The ODF spec >> is >> > a bit confusing at this point, so I'm posting it for review. >> >> Sorry for taking so long to reply... >> >> I think the patch is almost correct but I'm worried it doesn't cover all >> cases. Specifically the 'if()' directly following the one you modified >> might set >> your style to 'solid' instead of none. >> Can you test the attached patch to solve the issue you had too? I think it >> is >> a tad more complete. >> > > > - if (fixedType.isEmpty() && !fixedStyle.isEmpty()) > + if (fixedType.isEmpty() && !fixedStyle.isEmpty() && fixedStyle != > "none") > fixedType = "single"; > > > - if (fixedType.isEmpty() && !fixedStyle.isEmpty()) > + if (fixedStyle == "none") > + fixedType.clear(); > + else if (fixedType.isEmpty() && !fixedStyle.isEmpty()) > fixedType = "single"; > > Isn't your patch doing the exact opposite of my patch? I guess with need a > unittest anyway. > Ah no, I was wrong here. Both patches do the same. Line type has the value KoCharacterStyle::NoLineType by default so that case doesn't have to be covered. --000e0cd29ed879dc32046ee710e8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Fri, Jul 17, 2009 at 2:41 PM, Sven La= ngkamp <sve= n.langkamp@gmail.com> wrote:
On Fri, Jul 17= , 2009 at 1:48 PM, Thomas Zander <zander@kde.org> wrote:
On Friday 03 July 2009 03:43:16 Sven Langkamp wrote:
> Hi,
>
> in the ongoing plugfest testing an issue where text appeared with unde= rline
> and line-through in OOo has been found.
> For details see
> http://plugtest.opendocsociety.org/do= ku.php?id=3Dscenarios:20090623:presentat
>ion-placeholder
>
> I found out that the character style is loads with line type single if= the
> specified line type is empty and the style is "none"
> I have attached a patch to change it to load as NoLineType. The ODF sp= ec is
> a bit confusing at this point, so I'm posting it for review.

Sorry for taking so long to reply...

I think the patch is almost correct but I'm worried it doesn't cove= r all
cases. Specifically the 'if()' directly following the one you modif= ied might set
your style to 'solid' instead of none.
Can you test the attached patch to solve the issue you had too? I think it = is
a tad more complete.


-=A0=A0=A0 if (fixedType.= isEmpty() && !fixedStyle.isEmpty())
+=A0=A0=A0 if (fixedType.isE= mpty() && !fixedStyle.isEmpty() && fixedStyle !=3D "no= ne")
=A0=A0=A0=A0=A0=A0=A0=A0 fixedType =3D "single";


-=A0=A0=A0 if (fixedType.isEmpty() && !fixedStyle.isEmpty()= )
+=A0=A0=A0 if (fixedStyle =3D=3D "none")
+=A0=A0=A0=A0=A0= =A0=A0 fixedType.clear();
+=A0=A0=A0 else if (fixedType.isEmpty() &&= amp; !fixedStyle.isEmpty())
=A0=A0=A0=A0=A0=A0=A0=A0 fixedType =3D "single";

Isn't your patch doing the exact opposite of my patch? I guess with= need a unittest anyway.

Ah no, I was wrong here. Both patches do the same. L= ine type has the value KoCharacterStyle::NoLineType by default so that case= doesn't have to be covered.
--000e0cd29ed879dc32046ee710e8-- --===============0031600712== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel --===============0031600712==--