From 36345874fb0086e5fc509caf01e84d26fd982afd Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Wed, 22 Apr 2009 20:24:06 +0000 Subject: Avoid DCHECK in nine box during download shelf animation. That DCHECK might be a little overzealous, but is probably useful for most situations, so I'm leaving it. TBR=tony Review URL: http://codereview.chromium.org/92036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14237 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/nine_box.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/gtk/nine_box.cc') diff --git a/chrome/browser/gtk/nine_box.cc b/chrome/browser/gtk/nine_box.cc index 677d8fb..ea79903 100644 --- a/chrome/browser/gtk/nine_box.cc +++ b/chrome/browser/gtk/nine_box.cc @@ -69,8 +69,8 @@ void NineBox::RenderToWidget(GtkWidget* dst) { const int y1 = gdk_pixbuf_get_height(images[0]); const int x2 = images[2] ? dst_width - gdk_pixbuf_get_width(images[2]) : x1; const int y2 = images[6] ? dst_height - gdk_pixbuf_get_height(images[6]) : y1; - DCHECK(x2 >= x1); - DCHECK(y2 >= y1); + DCHECK_GE(x2, x1); + DCHECK_GE(y2, y1); if (images[0]) DrawPixbuf(dst, images[0], 0, 0); -- cgit v1.1