• Noel Grandin's avatar
    more fixes for SfxItemState · d92602c5
    Noel Grandin yazdı
    In commit 88a874fc "convert SfxItemState constants to a proper enum"
    I made some mistakes in converting bitwise logic to boolean logic.
    
    I fixed one of those places in commit 7ad83656 "fix bitwise->logic
    conversion in SfxItemState commit"
    
    This commit fixes the other places where I converted bitwise to normal
    boolean logic. I also validated that none of the existing code tries to
    uses combinations of these enum values.
    
    This commit also introduces an exception-throwing check in the one place
    where the enum is explicitly cast to make sure that no combinations
    sneak in.
    
    Change-Id: I545f7d17b76c4fd999078867caec314e83ffe165
    Signed-off-by: 's avatarStephan Bergmann <sbergman@redhat.com>
    d92602c5
tp_AxisLabel.cxx 10 KB