To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=75974





------- Additional comments from [EMAIL PROTECTED] Wed Apr  4 12:08:03 +0000 
2007 -------
AW: What we have here are two errors:

(a) Changed behaviour in interactive construction of open polygons
(b) Load/Save problems with open polygons

Error (a):
I isolated the interaction stuff for SdrPathObj in aw024 to the class
ImpPathForDragAndCreate. There, IsAutoClosePolys() support changed thus that the
polygon was closed,but the object type of the path not changed accordingly
Changes:
- Moved IsAutoClosePolys handling to SdrPathObj::EndCreate where type changes
are possible. Adapted AutoClose test and using ImpSetClosed again
- Removed ImpSetClosed handling from isolated interactions

Error (b):
The type of the SdrPathObj defines the polygon interpretation.
The API handling needs to serve the old open/closed paradigm using first and
last point
Changes:
- In SdrPathObj::ImpForceKind() i added an adaption of the open/closed state of
the path model data according to the object type.
- Removed an pre-version of doing this from SdrPathObj::ImpSetClosed and
SdrPathObj::TRSetBaseGeometry, this was not central enough.
- Chnaged B2DPolyPolygonToSvxPointSequenceSequence to add first point again as
last point when polygon is closed. This is conform to svg:d handling and to
ImplSvxPointSequenceSequenceToB2DPolyPolygon where basegfx::tools::checkClosed
was used correctly.

All together (b) means at export:
- Path data will now be open anyways but also correctly written when closed.
At import:
- Path data will be read as closed B2DPolygon after API, but corrected using
SdrPathObj object type in ImpForceKind().

Testing...

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to