From 738b4d36afeb9a6e3921ea8ce298a4156c3c454e Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 31 May 2016 06:45:02 -0400 Subject: [PATCH] Made imglab show the name of the current image in the title bar. --- tools/imglab/src/main.cpp | 2 +- tools/imglab/src/metadata_editor.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/imglab/src/main.cpp b/tools/imglab/src/main.cpp index bb423e6c8..ea390c78b 100644 --- a/tools/imglab/src/main.cpp +++ b/tools/imglab/src/main.cpp @@ -20,7 +20,7 @@ #include -const char* VERSION = "1.2"; +const char* VERSION = "1.3"; diff --git a/tools/imglab/src/metadata_editor.cpp b/tools/imglab/src/metadata_editor.cpp index f4efba347..8f727a322 100644 --- a/tools/imglab/src/metadata_editor.cpp +++ b/tools/imglab/src/metadata_editor.cpp @@ -87,7 +87,6 @@ metadata_editor( get_display_size(screen_width, screen_height); set_pos((screen_width-width)/2, (screen_height-height)/2); - set_title("Image Labeler - " + metadata.name); show(); } @@ -430,7 +429,7 @@ load_image( try { dlib::load_image(img, metadata.images[idx].filename); - + set_title(metadata.name + ": " +metadata.images[idx].filename); } catch (exception& e) { @@ -458,7 +457,7 @@ load_image_and_set_size( try { dlib::load_image(img, metadata.images[idx].filename); - + set_title(metadata.name + ": " +metadata.images[idx].filename); } catch (exception& e) {