summaryrefslogtreecommitdiff
path: root/bench/bench_window.cpp
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2023-06-20 03:48:50 -0400
committerBenji Dial <benji@benjidial.net>2023-06-20 03:48:50 -0400
commit1940ef130528e58cdfe0dd1589091947f6d8b8c7 (patch)
tree156378cbfa060dcae4973a538c0f3237b9dfc1ca /bench/bench_window.cpp
parentd24a732c772b40f804403ab5758f33f74b2eb6ed (diff)
downloadlib94-1940ef130528e58cdfe0dd1589091947f6d8b8c7.tar.gz
rewrite compiler again, bringing more in line with standard, and add readme
Diffstat (limited to 'bench/bench_window.cpp')
-rw-r--r--bench/bench_window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/bench_window.cpp b/bench/bench_window.cpp
index cb9f252..70cbbbf 100644
--- a/bench/bench_window.cpp
+++ b/bench/bench_window.cpp
@@ -254,7 +254,7 @@ void bench_window::on_add_warrior_dialog_response(int response_id, Gtk::FileChoo
on_click_new_round();
}
catch (const lib94::compiler_exception &ex) {
- Gtk::MessageDialog *md = new Gtk::MessageDialog(std::string("failed to compile: ") + ex.message + " on line " + std::to_string(ex.line_number));
+ Gtk::MessageDialog *md = new Gtk::MessageDialog(std::string("failed to compile: ") + ex.message + " on line " + std::to_string(ex.source_line_number));
md->set_transient_for(*this);
md->set_modal();
md->signal_response().connect([md](int) {delete md;});