Issue 73495 - ImageButton control: "SetImage" broken
Summary: ImageButton control: "SetImage" broken
Status: CLOSED DUPLICATE of issue 73486
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 2.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: carsten.driesner
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-15 22:12 UTC by akrioukov
Modified: 2007-03-08 08:09 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description akrioukov 2007-01-15 22:12:18 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.
Comment 1 kpalagin 2007-01-15 22:28:45 UTC
akrioukov,
any chance you could provide simple code fragment that demonstrates the 
problem?
Comment 2 carsten.driesner 2007-01-16 10:16:04 UTC
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 ***
Comment 3 carsten.driesner 2007-03-08 08:09:51 UTC
cd: Closed.