summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_report.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-02-11 22:03:14 +0100
committerRobin Gareus <robin@gareus.org>2016-02-11 22:03:14 +0100
commit9766f88ee5e0aa1ec4e34688ec27d39256883ab4 (patch)
tree6c4b2d24448a7486525aa4521aaa05581de07404 /gtk2_ardour/export_report.cc
parent8179efab256c75568aa77f3128b1311553575784 (diff)
fix alignment of "N/A" messages
Diffstat (limited to 'gtk2_ardour/export_report.cc')
-rw-r--r--gtk2_ardour/export_report.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/gtk2_ardour/export_report.cc b/gtk2_ardour/export_report.cc
index 86a77635b1..ae5107ef6c 100644
--- a/gtk2_ardour/export_report.cc
+++ b/gtk2_ardour/export_report.cc
@@ -170,6 +170,8 @@ ExportReport::ExportReport (Session* _session, StatusPtr s)
int mnw = 0; // max numeric width
int lin[4] = { 0, 0, 0, 0 }; // max line height
+ TXTSIZE(0, _("(too short integration time)"), get_SmallFont);
+
TXTSIZE(0, _("Peak:"), get_SmallFont);
TXTSIZE(1, string_compose (_("%1 dBFS"), std::setprecision (1), std::fixed, dbfs), get_LargeFont);
TXTSIZE(2, _("True Peak:"), get_SmallFont);
@@ -255,24 +257,24 @@ ExportReport::ExportReport (Session* _session, StatusPtr s)
if (!i->second->have_loudness) {
layout->set_alignment (Pango::ALIGN_CENTER);
layout->set_font_description (UIConfiguration::instance ().get_LargeFont ());
- layout->set_text (_("not\navailable"));
+ layout->set_text (_("Not\nAvailable"));
layout->get_pixel_size (w, h);
- cr->move_to (rint (nw2 - w * .5), rint (hh - h * .5));
+ cr->move_to (rint (nw2 - w * .5), rint ((hh - h) * .5));
layout->show_in_cairo_context (cr);
}
else if (p->loudness == -200 && p->loudness_range == 0) {
layout->set_alignment (Pango::ALIGN_CENTER);
layout->set_font_description (UIConfiguration::instance ().get_LargeFont ());
- layout->set_text (_("not\navailable"));
+ layout->set_text (_("Not\nAvailable"));
layout->get_pixel_size (w, h);
- cr->move_to (rint (nw2 - w * .5), rint (hh - h * .6));
+ cr->move_to (rint (nw2 - w * .5), rint (hh * .5 - h * .6));
layout->show_in_cairo_context (cr);
int yy = h * .5;
layout->set_font_description (UIConfiguration::instance ().get_SmallFont ());
layout->set_text (_("(too short integration time)"));
layout->get_pixel_size (w, h);
- cr->move_to (rint (nw2 - w * .5), rint (hh + yy));
+ cr->move_to (rint (nw2 - w * .5), rint (hh * .5 + yy));
layout->show_in_cairo_context (cr);
} else {