From 7d9dea7897ad7b22f3d0d31fb691ef0c25c7fd72 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 27 Apr 2018 10:03:36 +0200 Subject: [PATCH] Remove an excessive assert for Cairo canvas size It is a C-style assert causing application termination when triggered. Certain systems display pcbnew window shrinked so much, that the canvas size is 0x0 pixels. The only problem with that is the window needs to be resized. Fixes: lp:1767031 * https://bugs.launchpad.net/kicad/+bug/1767031 --- common/gal/cairo/cairo_compositor.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/common/gal/cairo/cairo_compositor.cpp b/common/gal/cairo/cairo_compositor.cpp index b0009e36ed..611db796e3 100644 --- a/common/gal/cairo/cairo_compositor.cpp +++ b/common/gal/cairo/cairo_compositor.cpp @@ -59,9 +59,6 @@ void CAIRO_COMPOSITOR::Resize( unsigned int aWidth, unsigned int aHeight ) { clean(); - assert( aWidth > 0 ); - assert( aHeight > 0 ); - m_width = aWidth; m_height = aHeight;