You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2014/01/25 13:29:50 UTC

[Bug 98734] Image control in dialog does not obey Scale : Keep Ratio

https://issues.apache.org/ooo/show_bug.cgi?id=98734

hanya <ha...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hanya.runo@gmail.com

--- Comment #4 from hanya <ha...@gmail.com> ---
Created attachment 82390
  --> https://issues.apache.org/ooo/attachment.cgi?id=82390&action=edit
Patch to support ScaleMode export and import for Image control

ScaleMode property is not exported/imported to xdl file from ImageControl 
when the dialog is stored.
The attached patch contains the changes to support ScaleMode property for 
ImageControl.

There is a problem between ScaleImage and ScaleMode property during createPeer
call.
Dialog importer loads xdl file and construct dialog model and loads properties
from 
the file. It is happend before the peer created of the dialog.
When the peer is created by calling UnoControl::createPeer method, 
in the method, the control is updated from properties of the model by
updateFromModel method. 
This makes the property change event fired, so
UnoControl::ImplModelPropertiesChanged respond to it.
The problem is happend at the end of this method, ImplSetPeerProperty method 
is called for each properties should be to set to the peer.
VCLXImageControl::setProperty method is called for ScaleImage property and 
the value from ScaleMode property is overwritten.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.