diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-12-09 12:45:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-12-09 14:47:49 +0000 |
commit | 6683010b1a856c3894cc0a7172ac14fda0b76aa8 (patch) | |
tree | e9810cb79d6fb2818230ba16793e7815d4bc98ac /cui/source | |
parent | 960207c72aedaf8569b880a7c000c10d0baabb70 (diff) |
Related: tdf#146395 drop default text
Change-Id: Iaeedf11df5f1d5739ec247222cc4fc1f10abe1e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143875
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/QrCodeGenDialog.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cui/source/dialogs/QrCodeGenDialog.cxx b/cui/source/dialogs/QrCodeGenDialog.cxx index e028d4d10e94..f8cbac1d758d 100644 --- a/cui/source/dialogs/QrCodeGenDialog.cxx +++ b/cui/source/dialogs/QrCodeGenDialog.cxx @@ -171,18 +171,14 @@ QrCodeGenDialog::QrCodeGenDialog(weld::Widget* pParent, Reference<XModel> xModel m_xEdittext->get_height_rows(6)); if (!bEditExisting) { - OUString sSelection; // TODO: This only works in Writer doc. Should also work in shapes Reference<XIndexAccess> xSelections(m_xModel->getCurrentSelection(), UNO_QUERY); if (xSelections.is()) { Reference<XTextRange> xSelection(xSelections->getByIndex(0), UNO_QUERY); if (xSelection.is()) - sSelection = xSelection->getString(); + m_xEdittext->set_text(xSelection->getString()); } - if (!sSelection.isEmpty()) - m_xEdittext->set_text(sSelection); - m_xEdittext->select_region(0, -1); return; } |