From 1b90bb5999e755bc038078633d18ba16d77a1077 Mon Sep 17 00:00:00 2001 From: casey Date: Fri, 2 Sep 2016 12:17:43 -0700 Subject: [PATCH] Align DialogOverlay buttons to the right. --- src/musikbox/cursespp/DialogOverlay.cpp | 1 + src/musikbox/cursespp/ShortcutsWindow.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/musikbox/cursespp/DialogOverlay.cpp b/src/musikbox/cursespp/DialogOverlay.cpp index 1ba5b5e3e..7c78cd327 100644 --- a/src/musikbox/cursespp/DialogOverlay.cpp +++ b/src/musikbox/cursespp/DialogOverlay.cpp @@ -52,6 +52,7 @@ DialogOverlay::DialogOverlay() { this->autoDismiss = true; this->shortcuts.reset(new ShortcutsWindow()); + this->shortcuts->SetAlignment(text::AlignRight); this->AddWindow(this->shortcuts); } diff --git a/src/musikbox/cursespp/ShortcutsWindow.cpp b/src/musikbox/cursespp/ShortcutsWindow.cpp index 365f934ce..c71a05eac 100755 --- a/src/musikbox/cursespp/ShortcutsWindow.cpp +++ b/src/musikbox/cursespp/ShortcutsWindow.cpp @@ -90,7 +90,7 @@ void ShortcutsWindow::UpdateContentColor() { } size_t ShortcutsWindow::CalculateLeftPadding() { - if (this->alignment = text::AlignLeft) { + if (this->alignment == text::AlignLeft) { return 0; }