allow compilation on that other platform

This commit is contained in:
Paul Davis 2015-02-12 10:21:24 -05:00
parent ccfc7ba6b2
commit cb3a6a6dea

View file

@ -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