Skip to content

Commit

Permalink
Fix incorrect DrawableImageDataModel bounds computation
Browse files Browse the repository at this point in the history
Differential Revision: D54632335

fbshipit-source-id: af918f00427224ebea5a6fdc7c990bd47abf4c3f
  • Loading branch information
oprisnik authored and facebook-github-bot committed Mar 8, 2024
1 parent 8a72f6f commit c9be133
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ object ImageRenderer {
// preferred dimensions
when (shape) {
is RectShape -> return { canvas ->
if (width >= 0 && height >= 0) {
if (width > 0 && height > 0) {
drawable.setBounds(0, 0, width, height)
canvas.concat(imageTransformation)
} else {
Expand Down

0 comments on commit c9be133

Please sign in to comment.