From 3e0523101382ad5730086e3b031303a7a68b01d6 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 18 Aug 2012 01:09:36 +0200 Subject: giving the renderer a tiny bit more accuracy --- layoutgl/widget.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/layoutgl/widget.cpp b/layoutgl/widget.cpp index d4d124c..1f10558 100644 --- a/layoutgl/widget.cpp +++ b/layoutgl/widget.cpp @@ -101,6 +101,9 @@ void LGLWidget::paintGL() { } void LGLWidget::renderPane(const LYTPane *pane) { + if (!pane->visible) + return; + glPushMatrix(); glScalef(pane->xScale, pane->yScale, 1.0f); @@ -441,7 +444,7 @@ void LGLWidget::drawQuad(float x, float y, float w, float h, const QVector