diff --git a/Fwk/AppFwk/cafVizExtensions/cafCategoryLegend.cpp b/Fwk/AppFwk/cafVizExtensions/cafCategoryLegend.cpp index 287acdbb88..1a3d4b87a7 100644 --- a/Fwk/AppFwk/cafVizExtensions/cafCategoryLegend.cpp +++ b/Fwk/AppFwk/cafVizExtensions/cafCategoryLegend.cpp @@ -247,8 +247,8 @@ void CategoryLegend::renderLegendUsingShaders(OpenGLContext* oglContext, CVF_CALLSITE_OPENGL(oglContext); CVF_TIGHT_ASSERT(layout); - CVF_TIGHT_ASSERT(layout->size.x() > 0); - CVF_TIGHT_ASSERT(layout->size.y() > 0); + CVF_TIGHT_ASSERT(layout->overallLegendSize.x() > 0); + CVF_TIGHT_ASSERT(layout->overallLegendSize.y() > 0); RenderStateDepth depth(false); depth.applyOpenGL(oglContext); @@ -370,8 +370,8 @@ void CategoryLegend::renderLegendImmediateMode(OpenGLContext* oglContext, Overla CVF_FAIL_MSG("Not supported on OpenGL ES"); #else CVF_TIGHT_ASSERT(layout); - CVF_TIGHT_ASSERT(layout->size.x() > 0); - CVF_TIGHT_ASSERT(layout->size.y() > 0); + CVF_TIGHT_ASSERT(layout->overallLegendSize.x() > 0); + CVF_TIGHT_ASSERT(layout->overallLegendSize.y() > 0); RenderStateDepth depth(false); depth.applyOpenGL(oglContext); diff --git a/Fwk/AppFwk/cafVizExtensions/cafOverlayScalarMapperLegend.cpp b/Fwk/AppFwk/cafVizExtensions/cafOverlayScalarMapperLegend.cpp index 3b614cd8d3..a66e2c9442 100644 --- a/Fwk/AppFwk/cafVizExtensions/cafOverlayScalarMapperLegend.cpp +++ b/Fwk/AppFwk/cafVizExtensions/cafOverlayScalarMapperLegend.cpp @@ -314,8 +314,8 @@ void OverlayScalarMapperLegend::renderLegendUsingShaders(OpenGLContext* oglConte CVF_CALLSITE_OPENGL(oglContext); CVF_TIGHT_ASSERT(layout); - CVF_TIGHT_ASSERT(layout->size.x() > 0); - CVF_TIGHT_ASSERT(layout->size.y() > 0); + CVF_TIGHT_ASSERT(layout->overallLegendSize.x() > 0); + CVF_TIGHT_ASSERT(layout->overallLegendSize.y() > 0); RenderStateDepth depth(false); depth.applyOpenGL(oglContext); @@ -481,8 +481,8 @@ void OverlayScalarMapperLegend::renderLegendImmediateMode(OpenGLContext* oglCont CVF_FAIL_MSG("Not supported on OpenGL ES"); #else CVF_TIGHT_ASSERT(layout); - CVF_TIGHT_ASSERT(layout->size.x() > 0); - CVF_TIGHT_ASSERT(layout->size.y() > 0); + CVF_TIGHT_ASSERT(layout->overallLegendSize.x() > 0); + CVF_TIGHT_ASSERT(layout->overallLegendSize.y() > 0); RenderStateDepth depth(false); depth.applyOpenGL(oglContext);