diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2022-07-28 14:01:53 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-07-28 15:44:53 +0200 |
commit | 0dcebde891619b4dcb4c0d170b3b5919ac6750c8 (patch) | |
tree | 32d3e9827d5f56c79784a9608f9db63c19b235f3 /vcl | |
parent | a71a5cdb972174cb7c33e67927cd519152fd3cf6 (diff) |
tdf#150181 vcl: first column is editable by default in SvTabListBox
(regression from commit fe38553aef2121f358fb58e450ec69314aad851e)
Change-Id: I58e1afb228dfd87b7d642ccf1b58277960f01e14
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137561
Tested-by: Jenkins
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/treelist/svtabbx.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/treelist/svtabbx.cxx b/vcl/source/treelist/svtabbx.cxx index f1277eafd41a..25ef3e4f62d4 100644 --- a/vcl/source/treelist/svtabbx.cxx +++ b/vcl/source/treelist/svtabbx.cxx @@ -205,6 +205,7 @@ void SvTabListBox::dispose() void SvTabListBox::SetTabs(sal_uInt16 nTabs, tools::Long const pTabPositions[], MapUnit eMapUnit) { + assert(0 < nTabs); mvTabList.resize(nTabs); MapMode aMMSource( eMapUnit ); @@ -218,6 +219,8 @@ void SvTabListBox::SetTabs(sal_uInt16 nTabs, tools::Long const pTabPositions[], mvTabList[nIdx].SetPos( nNewTab ); mvTabList[nIdx].nFlags &= MYTABMASK; } + // by default, 1st one is editable, others not; override with set_column_editables + mvTabList[0].nFlags |= SvLBoxTabFlags::EDITABLE; SvTreeListBox::nTreeFlags |= SvTreeFlags::RECALCTABS; if( IsUpdateMode() ) Invalidate(); |