summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-05-10 16:37:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2023-05-10 22:27:33 +0200
commitd3c2ae1bb0913bcb2a28b2243e62f38016ddf7b0 (patch)
tree8dfc31cdb8cbca326485b9bfc65e535cabac5ce5
parent9a8b367f5d34b59ccdba0cf9336fb1e59bc4a8e5 (diff)
attempt to select non-existing index -2 in combobox
regression since: commit be1fe4418caa8c26ea53fe1f9acbe36096d5e3a9 Date: Mon Mar 27 14:28:45 2023 +0200 tdf#150652 Column Type being disabled makes UX unintuitive Columntype is no longer disabled by default. Change-Id: I607fc6481dd1d81d8deb440317dbfeffc9ec30dc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151640 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/ui/dbgui/scuiasciiopt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx
index 9f510c9d7e3d..8fd50c1b2431 100644
--- a/sc/source/ui/dbgui/scuiasciiopt.cxx
+++ b/sc/source/ui/dbgui/scuiasciiopt.cxx
@@ -933,7 +933,7 @@ IMPL_LINK( ScImportAsciiDlg, ColTypeHdl, ScCsvTableBox&, rTableBox, void )
if (bEmpty)
mxLbType->set_active(-1);
- else
+ else if (bEnable)
mxLbType->set_active(nType);
}