IDEMPIERE-368 / Fix problem in process parameter panel

This commit is contained in:
Carlos Ruiz 2012-09-04 12:10:28 -05:00
parent 482903959c
commit 8bda458b0c
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ public class WStringEditor extends WEditor implements ContextMenuListener
} }
else else
getComponent().setMultiline(false); getComponent().setMultiline(false);
getComponent().setRows(gridField.getNumLines()); getComponent().setRows(gridField.getNumLines() <= 0 ? 1 : gridField.getNumLines());
if (getComponent() instanceof Textbox) if (getComponent() instanceof Textbox)
((Textbox)getComponent()).setObscureType(obscureType); ((Textbox)getComponent()).setObscureType(obscureType);