Fix another similar warning

This commit is contained in:
Maxime Gimeno 2021-04-06 13:17:37 +02:00
parent c349448ec5
commit 8f7e12ebdc
2 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,7 @@ void TextRenderer::draw(CGAL::Three::Viewer_interface *viewer, const QVector3D&
qobject_cast<CGAL::Three::Scene_print_item_interface*>(scene->item(scene->mainSelectionIndex()));
if( item &&
item->shouldDisplayIds(list->item())
)
){
Q_FOREACH(TextItem* item, list->textList())
{
CGAL::qglviewer::Vec src(item->position().x(), item->position().y(),item->position().z());
@ -48,6 +48,7 @@ void TextRenderer::draw(CGAL::Three::Viewer_interface *viewer, const QVector3D&
painter->drawText(rect, item->text());
}
}
}
}
//Display the local TextItems

View File

@ -24,6 +24,7 @@
#include <CGAL/config.h>
#include <CGAL/assertions.h>
#include <iterator>
#include <typeinfo>
#include <boost/variant.hpp>