listview: fix alignment tests

Paul Vriens paul.vriens at xs4all.nl
Fri Jan 14 04:32:56 CST 2005


Dimitrie O. Paun wrote:
>
> ChangeLog
>     Use the LVCFMT_{LEFT,RIGHT,CENTER} enumeration flags properly.
>
>  	/* set text alignment (leftmost column must be left-aligned) */
> -        if (nColumn == 0 || lpColumn->fmt & LVCFMT_LEFT)
> +        if (nColumn == 0 || (lpColumn->fmt & LVCFMT_JUSTIFYMASK) ==
> LVCFMT_LEFT)
>              lphdi->fmt |= HDF_LEFT;

HDF_LEFT is also 0, so should we get rid of the first check, and only
check for LVCFMT_RIGHT and LVCFMT_CENTER?

>
>          if (lpColumn->fmt & LVCFMT_BITMAP_ON_RIGHT)
>
> --
> Dimi.
>
>
Cheers,

Paul.




More information about the wine-devel mailing list