Apache OpenOffice (AOO) Bugzilla – Issue 73495
ImageButton control: "SetImage" broken
Last modified: 2007-03-08 08:09:51 UTC
I am experimenting with complex toolbar controls for my add-on package. I would like to indicate the state of my application by setting different images for an ImageButton control. Unfortunately, sending the "SetImage" command to the control produces no result, although my code seems to be correct (all operations with other controls work perfectly). I had a look at OOo sources and noticed the following condition in framework/source/uielement/imagebuttontoolbarcontroller.cxx: if ( rControlCommand.Command.equalsAsciiL( "SetImage", 7 )) As you can see, the second argument of equalsAsciiL is probably wrong (should be 8). Is it possible that "SetImage" fails for this reason? P.S. Reducing the command name to 7 characters (i. e. "SetImag" instead of "SetImage") doesn't help.
akrioukov, any chance you could provide simple code fragment that demonstrates the problem?
cd->akrioukov: Thanks for your issue, but I already created one. We are short before code freeze and therefore I had to create one myself. The fix will support both strings "SetImag" and "SetImage" to be downward compatible. *** This issue has been marked as a duplicate of 73486 ***
cd: Closed.