• Noel Grandin's avatar
    improve empty tools::Rectangle (width) · a46a2577
    Noel Grandin yazdı
    This is the width part, the height part will come next.
    
    Instead of storing "empty" as a special value (which is easy to get
    wrong, eg. some image filters pass in that special value, expecting it
    to be a valid width), just use separate boolean values for width and
    height empty.
    
    Also lots of code was calling GetBottom() or GetRight() on an
    empty rectangle, getting back that magic value and doing calculations
    on it, resulting in completely bogus data.
    
    So
    (1) make the various Rectangle methods do something reasonable
        when the empty flags are set
    (2) fix various other code to handle empty better
    (3) assert when code accesses Bottom or Right and the empty flag
        is set.
    
    Change-Id: I1163378cd2773dd8b386210f83400bb6b4701069
    Reviewed-on: https://gerrit.libreoffice.org/73564
    Tested-by: Jenkins
    Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
    a46a2577
Adı
Son kayıt (commit)
Son güncelleme
..
accessibility Loading commit data...
core Loading commit data...
customshapes Loading commit data...
dialog Loading commit data...
engine3d Loading commit data...
fmcomp Loading commit data...
form Loading commit data...
gallery2 Loading commit data...
gengal Loading commit data...
inc Loading commit data...
items Loading commit data...
mnuctrls Loading commit data...
sdr Loading commit data...
sidebar Loading commit data...
smarttags Loading commit data...
stbctrls Loading commit data...
styles Loading commit data...
svdraw Loading commit data...
table Loading commit data...
tbxctrls Loading commit data...
toolbars Loading commit data...
uitest Loading commit data...
unodialogs/textconversiondlgs Loading commit data...
unodraw Loading commit data...
unogallery Loading commit data...
xml Loading commit data...
xoutdev Loading commit data...