Remove emptyOrNull text check from InfoboxOverlay
This is unnecessary as it should be checked when drawing the text. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -99,10 +99,7 @@ public class InfoBoxOverlay extends Overlay
|
||||
final Color color = box.getTextColor();
|
||||
|
||||
final InfoBoxComponent infoBoxComponent = new InfoBoxComponent();
|
||||
if (!Strings.isNullOrEmpty(text))
|
||||
{
|
||||
infoBoxComponent.setText(text);
|
||||
}
|
||||
infoBoxComponent.setText(text);
|
||||
if (color != null)
|
||||
{
|
||||
infoBoxComponent.setColor(color);
|
||||
|
||||
Reference in New Issue
Block a user