Apache OpenOffice (AOO) Bugzilla – Issue 81673
Draw shapes not displayed after reopening Writer document
Last modified: 2013-08-07 14:42:49 UTC
The file I'm going to attach does not show correctly in m228, nor does in m229. To reproduce: - open the attached doc with 2.3.0, it's displayed correctly - now open it with m228 (or m229) three shapes disappears. Last correct was m226.
Created attachment 48288 [details] file not displayed corectly as described.
Adjusted summary. I forgot to mention that the issue showed up on my builds. Lacking Hamburg builds I have no way to check. I'll attach a new version of the issue doc with embedded graphic, the first one was linked.
Created attachment 48289 [details] new version of doc with graphic embedded
MRU->OD: please try the second attachment. There are a graphic and three shapes in it. In OO 2.2.1 the shapes are displayed, but not in OO 2.3 and m228 anymore. I was not able to reproduce it with docuents built by myself. Could you please have a look what's happening here? Thanks!
I did some other tests. In m228 I tried to add some shapes, I was successful with some of them: - rectangle: added and displayed - ellipse: added and displayed - basic shapes: when added nothing is displayed but the handles, the shape is not shown, but if you save the doc and open it with 2.3.0 you can see them. - star shapes: same as basic shapes. I repeated the same test as above with a newly built m229 (9222), the behavior was the same as for m228 described above.
Looks like the problem was introduced in CWS navorder. I have not yet an explanation of how the changes in that CWS could result in not painting custom shapes in the Writer (in Impress they are OK).
Setting target to 2.4 because I can not reproduce the issue on OOG m5. I can reproduce it on SRC680 m228, so does not look like the bug was introduced into the 2.3 code line.
*** Issue 82364 has been marked as a duplicate of this issue. ***
Hi * Sorry I didn't find this issue before submitting mine. Remark: in OOo 2.2.1 and 2.3 it is no problem at all to insert a shape from the Drawing toolbar in Writer. This issue is a regression compared to 2.2.1 and 2.3 and IMO a serious bug. So pls fix before releasing 2.3.1.
Just to make clear: my duplicatie issue #82364 was not (only) about the fact that shapes are not displayed, but about the fact that it is impossible to insert shapes.
The cause of this bug is an optimization made in SdrObject::getSdrObjectFromXShape() and ::GetSdrObjectFromXShape(): the lines SvxShape* pShape = SvxShape::getImplementation( xShape ); were replaced by SvxShape* pShape = dynamic_cast< SvxShape* >( xShape.get() ); The later does not take the Writer implementation with its SwXShape class into account and fails in that case. Reverting this change fixes the bug.
*** Issue 83690 has been marked as a duplicate of this issue. ***
Please verify.
SBA: Put Sophie on CC. I will attach a bugdoc that did not open at all (box: "Error reading file") before this fix. Tried that one in CWS installation on Windows -> Opens fine.
Created attachment 50646 [details] Writer document with draw object
*** Issue 84970 has been marked as a duplicate of this issue. ***
Note: It looks like the document I attached belongs to issue 83248 ("Writer Document with draw object containing connectors fails to load"). But that one already has a previously unloadable attachment and got fixed in the same CWS.
*** Issue 84908 has been marked as a duplicate of this issue. ***
Hello, Sorry for the dupe, but I never found the existing issue before to submit mine. Can anybody tell me in wich cws the fix has been commited? I'd like to test it with Aqua version, and if you need it, I propose to confirm it works Thanks :)
+CC for me
Created attachment 50859 [details] patch for Symbol shapes to be drawn in writer
Indeeed, the attached patch seems to fix the issue
impress132 is probably the right cws
CGU: Verified in cws Impress132
*** Issue 85313 has been marked as a duplicate of this issue. ***
*** Issue 85758 has been marked as a duplicate of this issue. ***
CGU: Integrated in src680m245 and ooh680m5