#440 Bugfix for #3958: Filename rendered incorrectly to tab bar when filename contains & character

Next_release
closed
nobody
None
6
2015-03-12
2012-12-25
Pekka Pöyry
No

Function DrawText interprets & as a prefix character and renders it as an underscore. Adding DT_NOPREFIX flag disables processing of prefix characters and fixes rendering bug.

Also fixes bug #4088 (duplicate).

1 Attachments

Related

Bugs: #4285

Discussion

  • Pekka Pöyry
    Pekka Pöyry
    2013-01-05

    I finally managed to fix previous problem. Unfortunately tab control doesn't have NOPREFIX style, so I had to fix this problem harder way. Duplicating every ampersand and using DrawText without DT_NOPREFIX style created too width tabs in cases where there were multiple continuous ampersands. Only way to make tabs width correct was to encode each tabs name so that every first ampersand is duplicated. In printing this encoding is reversed.

    I also had to manually create tooltips to give them TTS_NOPREFIX style, so that ampersands will be displayed correctly in them.

     
    Last edit: Pekka Pöyry 2013-01-05
    Attachments
  • Don HO
    Don HO
    2015-02-27

    • status: open --> accepted
    • Priority: 5 --> 6
     
  • Don HO
    Don HO
    2015-02-28

    Hi Pekka,

    Thank you for your contribution.
    It has been committed in SVN rev.1349, and will be in the next release.
    Sorry for the long time waiting.

    Don

     
  • Don HO
    Don HO
    2015-03-12

    • Status: accepted --> closed