summaryrefslogtreecommitdiff
path: root/src/gui/widgets/table.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-08-28 11:57:29 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-08-28 16:46:44 +0000
commite2fb719501c41356f632e6f8838c91d888239037 (patch)
tree435b6586af9e2c007f9fd92efee51b56809a7411 /src/gui/widgets/table.cpp
parent4180d647fdfedca0e2ef64fe8e07cb358b11cbf9 (diff)
downloadmana-e2fb719501c41356f632e6f8838c91d888239037.tar.gz
mana-e2fb719501c41356f632e6f8838c91d888239037.tar.bz2
mana-e2fb719501c41356f632e6f8838c91d888239037.tar.xz
mana-e2fb719501c41356f632e6f8838c91d888239037.zip
Fixed handling of consecutive text formatting markers
If a text contained for example "##3##B", expected behavior was to switch to blue color and bold font. Instead, due to there being no actual text in between the markers, the layouting code was aborting prematurely here: if (mMode == AUTO_WRAP && partWidth == 0) break; As far as I could judge, this check is actually not necessary anyway, but I've kept it for now since the wrapping code looks so problematic. Instead, a while loop now makes sure we process all consecutive formatting markers. Closes #75
Diffstat (limited to 'src/gui/widgets/table.cpp')
0 files changed, 0 insertions, 0 deletions