From da3addea5f07769a56ef8b31f66ba9f85689da94 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 9 Jun 2007 11:21:17 +0000 Subject: [PATCH] Removed incorrect parameter validation in ResizeBy(). Resizing a view to a negative size is perfectly fine. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21368 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/View.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index c35aa26e96..4e7b731f81 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -3605,13 +3605,6 @@ BView::ResizeBy(float deltaWidth, float deltaHeight) { // TODO: this doesn't look like it would work correctly with scrolled views - // NOTE: I think this check makes sense, but I didn't - // test what R5 does. - if (fBounds.right + deltaWidth < 0) - deltaWidth = -fBounds.right; - if (fBounds.bottom + deltaHeight < 0) - deltaHeight = -fBounds.bottom; - // BeBook says we should do this. And it makes sense. deltaWidth = roundf(deltaWidth); deltaHeight = roundf(deltaHeight);