Merge branch 'master' of git.ucc.asn.au:ipdf/code
authorDavid Gow <[email protected]>
Wed, 9 Apr 2014 12:17:14 +0000 (20:17 +0800)
committerDavid Gow <[email protected]>
Wed, 9 Apr 2014 12:17:14 +0000 (20:17 +0800)
src/view.cpp

index 80f4986..969bbb3 100644 (file)
@@ -57,7 +57,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));
@@ -69,7 +69,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);

UCC git Repository :: git.ucc.asn.au