From 95e95fee390d4841a7b6c54c69edc958fd73445a Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Fri, 24 Dec 2010 01:40:36 +0000 Subject: [PATCH] * CID 10247: Initialize those two members. Didn't do any harm since they depend on a set view bitmap and are set when setting one. * We can safe that resize_frame() call in case no view bitmap is set. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39931 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/View.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/servers/app/View.cpp b/src/servers/app/View.cpp index 0982f52844..26141c49d2 100644 --- a/src/servers/app/View.cpp +++ b/src/servers/app/View.cpp @@ -88,6 +88,8 @@ View::View(IntRect frame, IntPoint scrollingOffset, const char* name, fViewColor((rgb_color){ 255, 255, 255, 255 }), fDrawState(new (nothrow) DrawState), fViewBitmap(NULL), + fBitmapResizingMode(0), + fBitmapOptions(0), fResizeMode(resizeMode), fFlags(flags), @@ -1076,8 +1078,8 @@ View::ResizeBy(int32 x, int32 y, BRegion* dirtyRegion) child->ParentResized(x, y, dirtyRegion); // view bitmap - - resize_frame(fBitmapDestination, fBitmapResizingMode, x, y); + if (fViewBitmap != NULL) + resize_frame(fBitmapDestination, fBitmapResizingMode, x, y); // at this point, children are at their new locations, // so we can rebuild the clipping