perspective: Allow empty text for getCanvasTextLocation

This is particularly useful for aligning text to a certain point such
that it would not be centered on that point, such as left or right
alignment.
This commit is contained in:
Jordan Atwood
2019-01-29 16:24:05 -08:00
parent fe9409b9f3
commit dd84156dfc

View File

@@ -379,7 +379,7 @@ public class Perspective
@Nullable String text, @Nullable String text,
int zOffset) int zOffset)
{ {
if (text == null || "".equals(text)) if (text == null)
{ {
return null; return null;
} }