diff --git a/ApplicationLibCode/ModelVisualization/RivAnnotationTools.cpp b/ApplicationLibCode/ModelVisualization/RivAnnotationTools.cpp index b325819668..ff29be5fd9 100644 --- a/ApplicationLibCode/ModelVisualization/RivAnnotationTools.cpp +++ b/ApplicationLibCode/ModelVisualization/RivAnnotationTools.cpp @@ -37,6 +37,7 @@ #include "cvfViewport.h" #include +#include #include namespace caf @@ -185,7 +186,8 @@ auto createLabel = []( const cvf::Camera* camera, camera->unproject( screenCoord, &labelPosition ); } - return LabelInfo( annotationObject->text(), anchorPosition, labelPosition ); + LabelInfo info = { annotationObject->text(), anchorPosition, labelPosition }; + return info; }; //--------------------------------------------------------------------------------------------------