• 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
..
inc Loading commit data...
langsupport Loading commit data...
qa Loading commit data...
source Loading commit data...
uiconfig/ui Loading commit data...
util Loading commit data...
AllLangMoTarget_svt.mk Loading commit data...
CppunitTest_svtools_dialogs_test.mk Loading commit data...
CppunitTest_svtools_graphic.mk Loading commit data...
CppunitTest_svtools_html.mk Loading commit data...
Executable_langsupport.mk Loading commit data...
JunitTest_svtools_unoapi.mk Loading commit data...
Library_svt.mk Loading commit data...
Makefile Loading commit data...
Module_svtools.mk Loading commit data...
README Loading commit data...
UIConfig_svt.mk Loading commit data...