* fixed warnings in icon-o-matic (one of which was actually a style issue ;-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38270 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4b920fd031
commit
6ff66b0bc0
@ -59,11 +59,11 @@ PropertyItemView::Draw(BRect updateRect)
|
||||
labelColor = tint_color(labelColor, B_DARKEN_MAX_TINT);
|
||||
else
|
||||
labelColor = tint_color(labelColor, B_DISABLED_LABEL_TINT);
|
||||
|
||||
|
||||
SetHighColor(labelColor);
|
||||
BFont font;
|
||||
GetFont(&font);
|
||||
|
||||
|
||||
BString truncated(name_for_id(property->Identifier()));
|
||||
font.TruncateString(&truncated, B_TRUNCATE_MIDDLE, fLabelWidth - 10.0);
|
||||
|
||||
@ -114,11 +114,12 @@ PropertyItemView::MouseDown(BPoint where)
|
||||
|
||||
if (BMessage* message = Window()->CurrentMessage()) {
|
||||
int32 clicks;
|
||||
if (message->FindInt32("clicks", &clicks) >= B_OK)
|
||||
if (message->FindInt32("clicks", &clicks) >= B_OK) {
|
||||
if (clicks >= 2)
|
||||
fParent->DoubleClicked(this);
|
||||
else
|
||||
fParent->Clicked(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -451,8 +451,7 @@ _WriteTransformer(LittleEndianBuffer& buffer, Transformer* t)
|
||||
|| !buffer.Write(miterLimit))
|
||||
return false;
|
||||
|
||||
} else if (PerspectiveTransformer* perspective
|
||||
= dynamic_cast<PerspectiveTransformer*>(t)) {
|
||||
} else if (dynamic_cast<PerspectiveTransformer*>(t)) {
|
||||
// perspective
|
||||
if (!buffer.Write((uint8)TRANSFORMER_TYPE_PERSPECTIVE))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user