Issue 118380 - svm graphics in OLE-object are displaced when leaving edit mode
Summary: svm graphics in OLE-object are displaced when leaving edit mode
Alias: None
Product: Draw
Classification: Application
Component: viewing (show other issues)
Version: DEV300m104
Hardware: PC Windows XP
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2011-08-04 13:00 UTC by Regina Henschel
Modified: 2017-05-20 11:33 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Wrong displacement of svm-graphic (16.88 KB, application/vnd.oasis.opendocument.spreadsheet)
2011-08-04 13:00 UTC, Regina Henschel
no flags Details
folder with documents for writer case (75.97 KB, application/x-compressed)
2011-11-02 13:23 UTC, Regina Henschel
no flags Details
Writer document with svm graphic (10.87 KB, application/vnd.oasis.opendocument.text)
2012-06-09 21:37 UTC, Regina Henschel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Regina Henschel 2011-08-04 13:00:16 UTC
Created attachment 76740 [details]
Wrong displacement of svm-graphic

Open the attached file. It contains an xy-chart, where each data point has got its own marker. In the blue line the markers are used with there original size. In the red line the markers are set to 1cm size.
The square with cross in the middle has file type svm (starview metafile), the left marker is an standardsymgol, the right marker is a bullet picture from the gallery.

Doubleclick the chart to go to edit mode. Notice, that all markers are on the correct position.

Leave edit mode. Notice, that the 1cm marker with the svm-graphic is displaces. This happens, when the size set in the data point dialog is different from the original size of the svm-graphic. The amount of displacement depends on the choosen size.

This displacement happens when you use the svm-graphic via gallery and via file... as well.

The placement was correct in OOo2.4.3.
Comment 1 Regina Henschel 2011-08-05 19:07:35 UTC
I have found, that the error does occur with a svm-graphic in any OLE. So if
you insert a Writer-OLE that contains a svm-graphic into a Draw document, the
svm-graphics are displaced, when you leave the edit mode of the OLE.

I'll change the subject accordingly.
Comment 2 Armin Le Grand 2011-11-02 11:59:05 UTC
ALG->Regina: Does not happen in my current version, may be fixed with the current OLE enhancements. Please re-check with current version.
Comment 3 Regina Henschel 2011-11-02 13:22:20 UTC
I have used the last version from Ariel to check.
Chart as OLE: Bullet markers of type svm are OK now. That is very nice, because svm markers are transparent.

Draw document as OLE: That is OK in all document kinds as target. So your implementation has fixed it here.

Writer document as OLE: It is possible to insert the OLE file, but the svm-graphics are totally displaced, independent of their size. And worse, a double-click on the OLE crashes AOOo. This happens with all document kinds as target. The crash does not occur, if the source document contains no svm-graphics. I'll attach a zipped folder of test documents for the Writer case.
Comment 4 Regina Henschel 2011-11-02 13:23:30 UTC
Created attachment 76946 [details]
folder with documents for writer case
Comment 5 Regina Henschel 2012-06-09 21:37:18 UTC
Created attachment 78214 [details]
Writer document with svm graphic

Start with new Draw document.
Insert OLE from file.
Select attached document SVMTestSource.odt.
Notice the displaced SVM graphics. They should be next to the squares.
Double click the OLE -> Crash.

With a debug build I get the error message
Error: ImplHandleMouseEvent: mouse event is not sent to capture window
From File c:/AOO_2012_05_git_Calc/trunk/main/vcl/source/window/winproc.cxx at Line 422
Comment 6 Regina Henschel 2012-06-09 22:24:53 UTC
It does not crash, if the OLE is linked, not embedded.
Comment 7 Oliver-Rainer Wittmann 2012-06-13 12:16:21 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.
Comment 8 Marcus 2017-05-20 11:33:41 UTC
Reset assigne to the default "".