Issue 89827 - Activated OLE objects (and Charts) misplaced on window resize
Summary: Activated OLE objects (and Charts) misplaced on window resize
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: DEV300_m10
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 3.2
Assignee: michael.ruess
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-23 08:40 UTC by stephan_schaefer
Modified: 2009-07-02 11:34 UTC (History)
6 users (show)

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


Attachments
Paint error after maximizing (77.94 KB, image/png)
2008-05-23 08:42 UTC, stephan_schaefer
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description stephan_schaefer 2008-05-23 08:40:38 UTC
This problem has been introduced with CWS aquabmpfixes01:
1. Open Calc, and resize the window so that it is not maximized yet.
2. Create a simple chart.
3. Maximize the app window by clicking the green pill.
You will notice severe paint errors.
Comment 1 stephan_schaefer 2008-05-23 08:42:21 UTC
Created attachment 53871 [details]
Paint error after maximizing
Comment 2 hdu@apache.org 2008-05-23 08:51:23 UTC
.
Comment 3 hdu@apache.org 2008-05-26 16:00:32 UTC
This bug has nothing to do with that wonderful CWS aquabmpfixes01, because it also happens on plain 
DEV300_m12/13/14 builds on unxmacxi/wntmsci12/unxlngi6 platforms... reassigning to the chart 
project
Comment 4 hdu@apache.org 2008-05-26 16:02:07 UTC
adjusting the issue summary
Comment 5 stephan_schaefer 2008-05-28 10:24:58 UTC
This error is not chart specific. It happens with any OLE object and also with
plain graphics files. Just drag a PNG into Calc and maximize the app window to
see the paint error. Note that I cannot reproduce this problem on any other
platform, it is Mac specific.
To me this looks like a problem when copying/blitting bitmaps around.
HDU, please have a look. 
Comment 6 hdu@apache.org 2008-05-28 12:12:51 UTC
The aqua-specific clipping problem is already being addressed in issue 89828, so what remains looks like 
a serious drawing layer problem with OLE objects:
1. open Writer/Impress/Draw
2. create a simple chart
3. click into the chart to make it editable
4. maximize the app window
=> severe paint errors are visible (the chart is painted twice!)
Comment 7 Armin Le Grand 2008-05-28 12:56:10 UTC
AW: Only happens when maximizing the window with activated OLE, not when
starting maximized and going back to old window position. Workaround is to once
deactivate and reactivate OLE.
That two charts are shown is because the DrawingLayer paints it's OLE object and
the activated OLE is visible in a VCL-Window. When both are not aligned (same
positions), both are visible. The misaligned one is the activated OLE. Need to
find out who is positioning (and maybe resizing) activated OLEs. Changing
Summary accordingly.
Comment 8 Armin Le Grand 2008-06-03 16:21:50 UTC
AW: Just checked that the same happens in SW, but not in calc. Obviously, there
has vener been code in SD or in SW to position activated OLEs on window resize.
Maybe NN knows more about it since it works in SC.
AW->MAV: I hope You may know more about e.g. if an activated OLE is a VCL-Window
or not and who should reposition it, also maybe MBA knows more about it (i add
him to the task). The question is who should do that repositioning (or is doing
in tin SC). I guess it's something for the applications SD and SW.
Comment 9 mikhail.voytenko 2008-06-06 07:40:12 UTC
The unexpected move of the object does not happen in Calc only because the Calc
does not change the document page placement after maximizing.

In other words, when the document is maximized, the container part of the
embedded object control gets no notification regarding object move. So the
window of the active object has just the same position relative to the document
window. In Calc this position is correct by luck, but in Writer and Draw the
document page might be moved ( centered ), so the repositioning is required.

Thus it is no problem of Writer and Draw, it is just generally missing move of
the embedded object window, that luckily does not affect the functionality in Calc.
Comment 10 Mathias_Bauer 2008-06-06 15:11:52 UTC
target 3.x
Comment 11 Mathias_Bauer 2008-09-10 11:40:59 UTC
target changed to 3.1
Comment 12 mikhail.voytenko 2009-01-26 08:28:07 UTC
There are not enough resources to get it for OOo3.1, changing the target.
Comment 13 IngridvdM 2009-06-10 14:59:30 UTC
Issue 76401 may be related.
Comment 14 mikhail.voytenko 2009-06-10 15:19:00 UTC
*** Issue 76401 has been marked as a duplicate of this issue. ***
Comment 15 mikhail.voytenko 2009-06-10 15:23:19 UTC
The scenario from issue 76401 should be tested after the bug is fixed.
Comment 16 mikhail.voytenko 2009-06-10 15:37:39 UTC
mav->iha: As far as I remember the problem described here was reproducible for
writer as well. Only Calc has worked ( since its visual area position does not
really change in the scenarios ). The impress has of course more scenarios where
the visual area changes, but the writer is affected as well.
Comment 17 IngridvdM 2009-06-10 16:17:11 UTC
iha->mav: The window resize in impress from issue 76401 is not triggered by the
user. The user scenario to edit an OLE object within impress is much more common
than maximizing a window while in edit mode I think. So I found it important to
add that more problematic scenario to the summary.
But while reading more through this issue I am quite irritated about its
content. It was reported for Calc and later it is stated that it does occur in
all applications but not in Calc? It seems that something has been mixed here.
Further I cannot reproduce the mentioned wrong placement within writer nor calc
with a current Office version on windows - not with dev30m50 and not with OOo
3.1. So either this issue is fixed or it is about a special paint problem on
mac. In both cases issue 76401 is not a duplicate as it does occur on windows
with dev300m50.
Comment 18 IngridvdM 2009-06-10 16:32:07 UTC
Further research revealed: The positioning problem within writer does still
occur in dev300m31, but does not occur in dev300m33. So somewhere inbetween it
was fixed.
Comment 19 mikhail.voytenko 2009-06-10 16:32:49 UTC
mav->iha: You are right, the problem is not reproducible any more. And the
reason is that the applications preserve the topleft corner of the visual area
currently ( the application is not centered any more ). So it looks like the
problem was workarounded.

At the beginning the problem has mixed problems with embedded object and
embedded pictures. Additionally the part of scenario was already fixed, so when
I have got the issue it was already only about all the applications except Calc.
And the original reason was the same as the reason for issue 76401 ( at least as
it looks currently for me ), change of the container visual area position was
not notified to the active object.

I completely agree that the issue 76401 should not be marked as duplicate of
this issue in this case. Moreover I will close this issue as non-reproducible then.
Comment 20 mikhail.voytenko 2009-06-10 16:34:18 UTC
mav->mru: Please verify that the issue is no more reproducible in all the OOo
container applications.
Comment 21 mikhail.voytenko 2009-06-10 16:40:45 UTC
Hm, interesting. In writer the issue looks indeed to be explicitly fixed. the
visual area is changed there and the object gets notification now.
Comment 22 michael.ruess 2009-07-02 11:34:44 UTC
confirm MAV's finding in DEV300m51 (checked with unxmacxi.pro build).