summaryrefslogtreecommitdiff
path: root/vcl/source/control/edit.cxx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2020-12-12 20:47:37 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2020-12-13 09:03:22 +0100
commit579cf9548615e8535a0569a8eb4cdf325fbbbac7 (patch)
tree86f11fc8c8f47734336c6710125d6f1eecbdfafa /vcl/source/control/edit.cxx
parent368c56144aab5794c39d5bc2082d9b3d6d7cebdb (diff)
tdf#138857 fix font replacement table GUI
- fix the get_text calls missed in tdf#136534, so combo box entry and table selection are synced again - unselect the table row, if the combo box entry doesn't match anymore the selected table row. - empty the combo box entries on multiple selection (allowd for mass delete only) - move the "apply replacement table" checkbox before the table - also change the comboboxes's sensitivity when toggling the "apply replacement table" checkbox. Change-Id: Ib509e46e3a468ece6ab20e6be41c04caec3265ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107642 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r--vcl/source/control/edit.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 5699124a9cde..f631500b8408 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2577,7 +2577,12 @@ OUString Edit::GetText() const
if ( mpSubEdit )
return mpSubEdit->GetText();
else
- return maText.toString();
+ {
+ if (!maText.isEmpty())
+ return maText.toString();
+ else
+ return OUString();
+ }
}
void Edit::SetCursorAtLast(){