tdf#143483: sw field edit: improved selection of format
commit965636121cb1fb09739fcbca2c85f0a07bf6bf96
authorVasily Melenchuk <vasily.melenchuk@cib.de>
Wed, 21 Jul 2021 18:28:59 +0000 (21 21:28 +0300)
committerThorsten Behrens <thorsten.behrens@allotropia.de>
Mon, 26 Jul 2021 13:18:56 +0000 (26 15:18 +0200)
tree1a63357760e9244d79132dd3747306183069afde
parentd44730148a95933f4a45a70241cb6d1d0546f626
tdf#143483: sw field edit: improved selection of format

During selection of used field format do this after list
is initialized. Otherwise selection can be lost during
further treelist filling.

Removed ancient hack which was trying to select at least
something in field format list: it is incorrect and does
not cover all possible fields/formats. It is just hiding
any potenial initialization problems.

Change-Id: Ibbbdd1e9a3436fec37cc49c11e6e235e8afcf4ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119341
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
sw/source/ui/fldui/flddok.cxx