Fixed two warnings (caused by the layout extensions).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19304 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -820,6 +820,7 @@ BComboBox::TextInput::AlignTextRect()
|
|||||||
BRect textRect = TextRect();
|
BRect textRect = TextRect();
|
||||||
|
|
||||||
switch (Alignment()) {
|
switch (Alignment()) {
|
||||||
|
default:
|
||||||
case B_ALIGN_LEFT:
|
case B_ALIGN_LEFT:
|
||||||
textRect.OffsetTo(B_ORIGIN);
|
textRect.OffsetTo(B_ORIGIN);
|
||||||
break;
|
break;
|
||||||
@@ -1483,6 +1484,7 @@ BComboBox::Draw(BRect /*updateRect*/)
|
|||||||
GetFontHeight(&fInfo);
|
GetFontHeight(&fInfo);
|
||||||
|
|
||||||
switch (fLabelAlign) {
|
switch (fLabelAlign) {
|
||||||
|
default:
|
||||||
case B_ALIGN_LEFT:
|
case B_ALIGN_LEFT:
|
||||||
loc.x = bounds.left + TV_MARGIN;
|
loc.x = bounds.left + TV_MARGIN;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user