Commit 9be26394d12643e0a175d80c51bac8a06c9dc1a0

Authored by Scott Klum
1 parent ae678056

Prevent display of landmarks in target gallery

Showing 1 changed file with 3 additions and 4 deletions
openbr/gui/templateviewer.cpp
... ... @@ -27,7 +27,7 @@ TemplateViewer::TemplateViewer(QWidget *parent)
27 27 setMouseTracking(true);
28 28 setDefaultText("<b>Drag Photo or Folder Here</b>\n");
29 29 format = "Photo";
30   - editable = true;
  30 + editable = false;
31 31 setFile(File());
32 32 update();
33 33 }
... ... @@ -233,9 +233,8 @@ void TemplateViewer::paintEvent(QPaintEvent *event)
233 233  
234 234 if (format == "Photo") {
235 235 for (int i=0; i<NumLandmarks; i++) {
236   - if (!landmarks[i].isNull()) {
237   - if ((i == nearestLandmark) &&
238   - editable) painter.setBrush(QBrush(nearest));
  236 + if (!landmarks[i].isNull() && editable) {
  237 + if (i == nearestLandmark) painter.setBrush(QBrush(nearest));
239 238 else painter.setBrush(QBrush(normal));
240 239 painter.drawEllipse(getScreenPoint(landmarks[i]), 4, 4);
241 240 }
... ...