summaryrefslogtreecommitdiff
path: root/chromium/ui/views/examples/label_example.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/views/examples/label_example.cc')
-rw-r--r--chromium/ui/views/examples/label_example.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/ui/views/examples/label_example.cc b/chromium/ui/views/examples/label_example.cc
index b28d2739951..37a5fce3ee3 100644
--- a/chromium/ui/views/examples/label_example.cc
+++ b/chromium/ui/views/examples/label_example.cc
@@ -240,13 +240,13 @@ Combobox* LabelExample::AddCombobox(View* parent,
}
void LabelExample::AlignmentChanged() {
- custom_label_->SetHorizontalAlignment(
- static_cast<gfx::HorizontalAlignment>(alignment_->GetSelectedIndex()));
+ custom_label_->SetHorizontalAlignment(static_cast<gfx::HorizontalAlignment>(
+ alignment_->GetSelectedIndex().value()));
}
void LabelExample::ElidingChanged() {
- custom_label_->SetElideBehavior(
- static_cast<gfx::ElideBehavior>(elide_behavior_->GetSelectedIndex()));
+ custom_label_->SetElideBehavior(static_cast<gfx::ElideBehavior>(
+ elide_behavior_->GetSelectedIndex().value()));
}
void LabelExample::OnViewThemeChanged(View* observed_view) {