Apache OpenOffice (AOO) Bugzilla – Issue 121609
When Copy-Pasting a draw object with bitmap tile filling to a paint program as bitmap, visible gaps appear in the tiling
Last modified: 2022-10-28 12:54:25 UTC
ALG: When Copy/Pasting SDrObjects with tile fill gaps appear. Looking into this...
ALG: Grepping and taking a look. Main reason is that in SdrExchangeView::GetMarkedObjBitmapEx the conversion to BitmapEx is done using the path over Metafile. In the Metafile the tiling is geometrically corrcect. When rendering this to a pixel target the tiling is not known in the Metafile and gaps may occurr. This always happens when the renderer tiling does not know about the tiling. This is not wanted and anyways the taken conversion path over the metafile is error-prone and may create other obstacles. Implementing a more direct way using primitives and tooling to create a BitmapEx instantly. When at it, unify the way the selected objects are accessed in SdrExchangeView. This is done in DrawMarkedObj and GetMarkedObjModel in a way which sorts FormControls to the end of the list. This is needed for the direct conversion, too, so I create SdrExchangeView::GetMarkedObjects and use/replace it.
ALG: Works as expected. Also checked model cretion for transfer and bitmap conversion. Preparing commit...
ALG: Okay, done.
"alg" committed SVN revision 1432130 into trunk: #121609# Made conversion to bitmap more direct