enhanced-shape and A,W command definitions

Lukast dev lukast.dev at gmail.com
Mon Jul 18 14:59:40 BST 2011


Hello,

I was fixing bug https://bugs.kde.org/show_bug.cgi?id=277540 and I noticed
that OpenOffice and MS Office render the W command differently.

MS Office 2007 rendering
http://wstaw.org/m/2011/07/18/round-callout_ms2007.png

OpenOffice
http://wstaw.org/m/2011/07/18/round-callout_ooo.png

We render like this

Calligra
http://wstaw.org/m/2011/07/18/round_callout_calligra.png

I fixed [1] the problem in bug 277540 in filters, where I changed
the equation of the enhanced path from W to V, so if you open
doc/ppt, the shape is rendered correctly, but from different equation.

But maybe it should be fixed in the EnhancedPathShape?

The specification says that when A (or W) command occurs,
line to is drawn from current point to the starting point of the arc.

OOo and MS2007 probably set the current point to the starting point of the W arc
but calligra sets the current point to 0,0 if the command is first and
no other subpaths
are present.

What is your opinion?

[1] http://quickgit.kde.org/?p=calligra.git&a=commit&h=6de876c0abc1d8dc50a6e9a9a360b9c505052b97



More information about the calligra-devel mailing list