diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-10 10:42:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-10 19:57:17 +0000 |
commit | 2ee09316dcd09caf5dd13894de484804d3464172 (patch) | |
tree | d3e95951f99200d56eb6b06a0a975bdf3587f274 /vcl/inc/salvtables.hxx | |
parent | 13810281fe1297833a849bf5adea0be8ea77ca88 (diff) |
Related: tdf#152950 assert if this arises anywhere else
Change-Id: I29ff145c84fdd784c3b2fbd6e5860dcac42b597d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145262
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc/salvtables.hxx')
-rw-r--r-- | vcl/inc/salvtables.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx index d6968e36d00c..00bb670ffe54 100644 --- a/vcl/inc/salvtables.hxx +++ b/vcl/inc/salvtables.hxx @@ -734,6 +734,10 @@ public: virtual void set_active(int pos) override { + assert(m_xComboBox->IsUpdateMode() + && "don't set_active when frozen, set_active after thaw. Note selection doesn't " + "survive a " + "freeze"); if (pos == -1) { m_xComboBox->SetNoSelection(); |