From: David Gow Date: Wed, 9 Apr 2014 06:54:25 +0000 (+0800) Subject: Don't get Filled and Outline the wrong way around. X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=37f826f1fd7b64ee1eb68e4036b43e306560828a;p=ipdf%2Fcode.git Don't get Filled and Outline the wrong way around. --- diff --git a/src/view.cpp b/src/view.cpp index f78ec40..4425ebe 100644 --- a/src/view.cpp +++ b/src/view.cpp @@ -33,7 +33,7 @@ void View::Render() glBegin(GL_QUADS); for (unsigned id = 0; id < m_document.ObjectCount(); ++id) { - if (m_document.m_objects.types[id] == RECT_FILLED) + if (m_document.m_objects.types[id] != RECT_FILLED) continue; Rect obj_bounds = m_document.m_objects.bounds[id]; glVertex2f(Float(obj_bounds.x), Float(obj_bounds.y)); @@ -45,7 +45,7 @@ void View::Render() for (unsigned id = 0; id < m_document.ObjectCount(); ++id) { - if (m_document.m_objects.types[id] == RECT_OUTLINE) + if (m_document.m_objects.types[id] != RECT_OUTLINE) continue; Rect obj_bounds = m_document.m_objects.bounds[id]; glBegin(GL_LINE_LOOP);