Skip to content

Commit

Permalink
Gui: use an annotation node so that line is always rendered on top of…
Browse files Browse the repository at this point in the history
… the scene
  • Loading branch information
wwmayer committed Apr 1, 2023
1 parent c39dbc9 commit fa3ee34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gui/TaskView/TaskImageScale.cpp
Expand Up @@ -32,7 +32,7 @@
# include <Inventor/nodes/SoBaseColor.h>
# include <Inventor/nodes/SoCoordinate3.h>
# include <Inventor/nodes/SoLineSet.h>
# include <Inventor/nodes/SoSeparator.h>
# include <Inventor/nodes/SoAnnotation.h>
#endif

#include <Base/Console.h>
Expand Down Expand Up @@ -222,7 +222,7 @@ InteractiveScale::InteractiveScale(View3DInventorViewer* view, ViewProvider* vp)
{
coords = new SoCoordinate3;

Check warning on line 223 in src/Gui/TaskView/TaskImageScale.cpp

View workflow job for this annotation

GitHub Actions / Lint / Lint

assigning newly created 'gsl::owner<>' to non-owner 'SoCoordinate3 *' [cppcoreguidelines-owning-memory]

Check warning on line 223 in src/Gui/TaskView/TaskImageScale.cpp

View workflow job for this annotation

GitHub Actions / Lint / Lint

'coords' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer]
coords->ref();
root = new SoSeparator;
root = new SoAnnotation;

Check warning on line 225 in src/Gui/TaskView/TaskImageScale.cpp

View workflow job for this annotation

GitHub Actions / Lint / Lint

'root' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer]
root->ref();

root->addChild(coords);
Expand Down

0 comments on commit fa3ee34

Please sign in to comment.