Description: LO ignores SelectClipPath and draws the path instead. Steps to Reproduce: Open attached EMF sample. Actual Results: LO draws rectangle on top of the ellipse. Expected Results: To draw part of the rectangle that overlaps with the ellipse. Reproducible: Always User Profile Reset: No Additional Info: Other samples available on request.
Created attachment 171544 [details] EMF sample with elliptical clip path and rectanlge
Created attachment 171545 [details] Screenshot for the attached sample opened in MSO
Created attachment 171546 [details] EMF sample with ellipse as part of the path w/o any Stroke or Fill The first sample probably contains at least two problems. LO should not do any drawing with a path if there is no Stroke, Fill or StrokeAndFill command. Simplified sample is just an ellipse inside the path brackets. MSO shows it empty.
Bartosz: I noticed you had contributed to EMF part, thought you might be interested in this one. Could you confirm? If yes, there are some others which may interest you.
Created attachment 171609 [details] Ellipse in LO I see an ellipse in LO (look at attach from me)
(In reply to Roman Kuznetsov from comment #5) > Created attachment 171609 [details] > Ellipse in LO > > I see an ellipse in LO (look at attach from me) Forgot: Version: 7.2.0.0.alpha0+ / LibreOffice Community Build ID: a52590d76b89dc75be2aa87f4287624c89f1e82f CPU threads: 4; OS: Mac OS X 11.3; UI render: default; VCL: osx Locale: ru-RU (ru_RU.UTF-8); UI: en-US Calc: threaded
(In reply to Roman Kuznetsov from comment #5) > I see an ellipse in LO (look at attach from me) In this file ellipse is inside of BeginPath/EndPath brackets. there is no StrokePath, FillPath or StrokeAndFillPath EMR in the file --> ellipse should not be drawn. There is a SelectClipPath EMR after the EndPath. The result should look like a rectangle clipped by this elliptical area.
Confirmed issue on master
Bartosz Kosiorek committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/761fdaf26dc9ed7cd0d25a7630576e7800813e2f tdf#142004 tdf#141982 EMF Import: Add rotation and path support for EMR_ELLIPSE It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Bartosz Kosiorek committed a patch related to this issue. It has been pushed to "libreoffice-7-1": https://git.libreoffice.org/core/commit/eb1ec67f9a479148044f3869afe461e0f4533f22 tdf#142004 tdf#141982 EMF Import: Add rotation and path support for EMR_ELLIPSE It will be available in 7.1.4. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.