To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=109282
                 Issue #|109282
                 Summary|xmloff: negative parameters of enhanced-path not read 
                        |correctly
               Component|xml
                 Version|OOO320m12
                Platform|Unknown
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|code
             Assigned to|mba
             Reported by|tokoe





------- Additional comments from [email protected] Mon Feb 15 11:37:07 +0000 
2010 -------
Hej,

the GetEnhancedPath method in xmloff/draw/ximpcustomshape.cxx has a problem with
parsing parameters where the very first is a negative one.
For example for draw:enhanced-path="V -200 -200 1 2 3 4 5 6" the method would
return the numeric values 200, -200, 1, 2, 3, 4, 5, 6. So the first value looses
its sign. This will result in drawing errors when importing e.g. an ODP 
document.

The actual faulty code is the switch statement in GetEnhancedPath that only
checks whether a parameter starts with 0,1,2,3,4,5,6,7,8,9,$,?,. but not for '-'
Attached is a patch that adds the '-' to the switch statement, additionally
there is an ODP file that reproduces the problem. Without the patch, nothing is
drawn on the slide, because the path coordinates start with '-32000 -32000...'
With the patch, simpress shows two green/blue pie shapes on the left edge of the
slide.

---------------------------------------------------------------------
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