summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Deep <akshaydeepiitr@gmail.com>2016-04-28 19:10:07 +0530
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-04-29 10:19:10 +0000
commitd6ffb7405d3267f1e76aed7a5e3162b8700f6817 (patch)
tree5db90aa0ba522af745e253d3f6496fb400aeb83b
parent371f4f7171820e02ec59bf36f2758f13ef397850 (diff)
tdf#98037 SIDEBAR: Replacing 'Speed' drop downs with comboboxes (2)
Custom Animation Dialog: Enabled dynamic update of time in ComboBox Change-Id: I42e83486f6eea2684fb9a4f45981bd2f3d3336ab Reviewed-on: https://gerrit.libreoffice.org/24465 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r--sd/source/ui/animations/CustomAnimationDialog.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx
index 800addeb0a60..69a7ad36bb3d 100644
--- a/sd/source/ui/animations/CustomAnimationDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationDialog.cxx
@@ -1841,9 +1841,9 @@ IMPL_LINK_NOARG_TYPED(CustomAnimationDurationTabPage, DurationModifiedHdl, Edit&
{
double duration_value = static_cast<double>(mpCBXDuration->GetValue());
if(duration_value <= 0.0)
- {
mpCBXDuration->SetValue(1);
- }
+ else
+ mpCBXDuration->SetValue(duration_value);
}
}