Fixed warning.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36812 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2010-05-14 16:41:58 +00:00
parent 1c73ffa102
commit 3ddefbc1d4

View File

@ -350,7 +350,7 @@ BTextWidget::StartEdit(BRect bounds, BPoseView *view, BPose *pose)
rect.right = rect.left + textView->LineWidth() + 3;
// center new width, if necessary
if (view->ViewMode() == kIconMode
|| view->ViewMode() == kListMode && fAlignment == B_ALIGN_CENTER) {
|| (view->ViewMode() == kListMode && fAlignment == B_ALIGN_CENTER)) {
rect.OffsetBy(bounds.Width() / 2 - rect.Width() / 2, 0);
}