From 9467d1448c34107a4fad650780e8cd368d09d4b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 4 Nov 2008 21:52:57 +0000 Subject: [PATCH] fix a style violation git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28507 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/ShowImageView.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/apps/showimage/ShowImageView.cpp b/src/apps/showimage/ShowImageView.cpp index 167684dadd..8db6dc33c9 100644 --- a/src/apps/showimage/ShowImageView.cpp +++ b/src/apps/showimage/ShowImageView.cpp @@ -1166,17 +1166,14 @@ ShowImageView::BeginDrag(BPoint sourcePoint) // avoid flickering of dragged bitmap caused by drawing into the window AnimateSelection(false); // only use a transparent bitmap on selections less than 400x400 (taking into account zooming) - if ((fSelectionRect.Width() * fZoom) < 400.0 && (fSelectionRect.Height() * fZoom) < 400.0) - { + if ((fSelectionRect.Width() * fZoom) < 400.0 && (fSelectionRect.Height() * fZoom) < 400.0) { sourcePoint -= fSelectionRect.LeftTop(); sourcePoint.x *= fZoom; sourcePoint.y *= fZoom; // DragMessage takes ownership of bitmap DragMessage(&drag, bitmap, B_OP_ALPHA, sourcePoint); bitmap = NULL; - } - else - { + } else { delete bitmap; // Offset and scale the rect BRect rect(fSelectionRect);