diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-09 20:16:23 +0000 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2019-12-11 10:20:58 +0100 |
commit | 6d87a3ab7947ab862c56f1c73c8ca1b08411adcf (patch) | |
tree | 5426e977a6edd8178ab9fb2847080d64ad7609e1 /svx/source | |
parent | f60f4d906d2ee6ae15a2178d36e6c766d1a28d56 (diff) |
Related: tdf#129267 change spacing unit when measurement unit changes
Change-Id: I2407eb52a18dd06a51b49041df2035099c79c94a
Reviewed-on: https://gerrit.libreoffice.org/84788
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit fc280552a5ee0131a08aeea5ccfd8cb7b9a6225d)
Reviewed-on: https://gerrit.libreoffice.org/84791
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/dialog/spacinglistbox.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/svx/source/dialog/spacinglistbox.cxx b/svx/source/dialog/spacinglistbox.cxx index e0a508e9830a..85ebc624931c 100644 --- a/svx/source/dialog/spacinglistbox.cxx +++ b/svx/source/dialog/spacinglistbox.cxx @@ -29,6 +29,11 @@ SpacingListBox::SpacingListBox(vcl::Window* pParent) void SpacingListBox::Init(SpacingType eType) { + auto nSelected = GetSelectedEntryPos(); + if (nSelected == LISTBOX_ENTRY_NOTFOUND) + nSelected = 0; + Clear(); + const std::pair<const char*, int>* pResources; switch (eType) { @@ -57,7 +62,7 @@ void SpacingListBox::Init(SpacingType eType) } SetDropDownLineCount(8); - SelectEntryPos(0); + SelectEntryPos(nSelected); } VCL_BUILDER_FACTORY(SpacingListBox); |