From cb3a6a6dea9bcaf7f80e056ea5874d56bd89acd9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 12 Feb 2015 10:21:24 -0500 Subject: [PATCH] allow compilation on that other platform --- gtk2_ardour/session_close_dialog.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk2_ardour/session_close_dialog.cc b/gtk2_ardour/session_close_dialog.cc index 2116cd839f..0e8ddd56f1 100644 --- a/gtk2_ardour/session_close_dialog.cc +++ b/gtk2_ardour/session_close_dialog.cc @@ -82,13 +82,13 @@ SessionCloseDialog::on_save (WavesButton*) void SessionCloseDialog::set_top_label (std::string message) { -#if defined (PLATFORM_WINDOWS) - const size_t character_width = 9; // average width of the one character on Windows -#elif defined (__APPLE__) +#if defined (__APPLE__) const size_t character_width = 7; // average width of the one character on MacOS +#else + const size_t character_width = 9; // average width of the one character on other platforms #endif - const size_t n_characters_in_line = 400 / character_width; // 400 - size of the label, see session_close_dialog.xml - _top_label.set_text ( ARDOUR_UI_UTILS::split_on_lines (message, n_characters_in_line) ); + const size_t n_characters_in_line = 400 / character_width; // 400 - size of the label, see session_close_dialog.xml + _top_label.set_text ( ARDOUR_UI_UTILS::split_on_lines (message, n_characters_in_line) ); } void