summaryrefslogtreecommitdiff
path: root/vcl/inc/salvtables.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-01-10 10:42:26 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-01-10 19:57:17 +0000
commit2ee09316dcd09caf5dd13894de484804d3464172 (patch)
treed3e95951f99200d56eb6b06a0a975bdf3587f274 /vcl/inc/salvtables.hxx
parent13810281fe1297833a849bf5adea0be8ea77ca88 (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.hxx4
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();