{"action":"created","issue":{"url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1139","labels_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1139/labels{/name}","comments_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1139/comments","events_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1139/events","html_url":"https://github.com/OpenImageIO/oiio/issues/1139","id":74431798,"number":1139,"title":"ImageBufAlgo zero/fill modifies at least one row/column even if ROI width/height is zero","user":{"login":"Tristimulus","id":3316330,"avatar_url":"https://avatars.githubusercontent.com/u/3316330?v=3","gravatar_id":"","url":"https://api.github.com/users/Tristimulus","html_url":"https://github.com/Tristimulus","followers_url":"https://api.github.com/users/Tristimulus/followers","following_url":"https://api.github.com/users/Tristimulus/following{/other_user}","gists_url":"https://api.github.com/users/Tristimulus/gists{/gist_id}","starred_url":"https://api.github.com/users/Tristimulus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tristimulus/subscriptions","organizations_url":"https://api.github.com/users/Tristimulus/orgs","repos_url":"https://api.github.com/users/Tristimulus/repos","events_url":"https://api.github.com/users/Tristimulus/events{/privacy}","received_events_url":"https://api.github.com/users/Tristimulus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-08T17:14:42Z","updated_at":"2015-05-08T17:20:39Z","closed_at":null,"body":"Hi.\r\n\r\nWhen we apply a black mask to an image using ImageBufAlgo::zero with a ROI that has a width of zero we still get a single column of black pixels - which we didn't expect.\r\nIs that supposed to happen?\r\nIt looks like the width and height of the fill area are forced to be at least 1 (I'm guessing to protect against a devide-by-zero):\r\n\r\nhttps://github.com/OpenImageIO/oiio/blob/master/src/libOpenImageIO/imagebufalgo_draw.cpp#L121-L122\r\n\r\nBut shouldn't the function simply return instead in this case?\r\n\r\nKind Regards,\r\nMatthias"},"comment":{"url":"https://api.github.com/repos/OpenImageIO/oiio/issues/comments/100303077","html_url":"https://github.com/OpenImageIO/oiio/issues/1139#issuecomment-100303077","issue_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1139","id":100303077,"user":{"login":"lgritz","id":504179,"avatar_url":"https://avatars.githubusercontent.com/u/504179?v=3","gravatar_id":"","url":"https://api.github.com/users/lgritz","html_url":"https://github.com/lgritz","followers_url":"https://api.github.com/users/lgritz/followers","following_url":"https://api.github.com/users/lgritz/following{/other_user}","gists_url":"https://api.github.com/users/lgritz/gists{/gist_id}","starred_url":"https://api.github.com/users/lgritz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgritz/subscriptions","organizations_url":"https://api.github.com/users/lgritz/orgs","repos_url":"https://api.github.com/users/lgritz/repos","events_url":"https://api.github.com/users/lgritz/events{/privacy}","received_events_url":"https://api.github.com/users/lgritz/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T17:20:39Z","updated_at":"2015-05-08T17:20:39Z","body":"I would think so, yes. I consider that a bug. Hang on, I'll fix immediately."}}