Carsten写道: > Hi Shi zhoubo, > I am sorry but I was very busy with an important bug fix. I just checked > your changes and try to reproduce the problem with aSize.Width and an > icon based on a non-png format. I am not able to reproduce it with a > bmp-File. The value aSize.Width is correctly set. Could you please send > me your test icon via private e-mail for verification? > I just have found a problem with your implementation. If I import an > icon which already exists then there is no message box which describes a > possible resize operation. Although the icon will be imported and > replaces the existing icon there is no resize operation which leads to a > strange toolbar. Could you please check it? > > Regards, > Carsten > > Hi Carsten, I am so sorry I forgot to add the soure in the "SvxIconSelectorDialog::ReplaceGraphicItem()", so procured to import an icon which already exists then there is no message box which describes a possible resize operation. Now, I have added some code at the "SvxIconSelectorDialog::ReplaceGraphicItem()" in the "cfg.cxx". Could you please review it ?
I am sorry I didnt explain clearly the question about aSize.Width and an icon based on a non-png format. My means was following: if the icon is based on non-png format, "uno::Any a = props->getPropertyValue( OUString::createFromAscii("SizePixel") )" the function return value a is 0. Best Regards Shi zhoubo