bug fix [ 1659190 ] Form Help shows null when there is no help

This commit is contained in:
teo_sarca 2007-02-13 18:01:35 +00:00
parent 7618483385
commit a82fd8bd6b
1 changed files with 4 additions and 2 deletions

View File

@ -275,8 +275,10 @@ public class FormFrame extends CFrame
private void actionHelp()
{
StringBuffer sb = new StringBuffer();
sb.append("<h2>").append(m_Description).append("</h2><p>")
.append(m_Help);
if (m_Description != null && m_Description.length() > 0)
sb.append("<h2>").append(m_Description).append("</h2>");
if (m_Help != null && m_Help.length() > 0)
sb.append("<p>").append(m_Help);
Help hlp = new Help (Env.getFrame(this), this.getTitle(), sb.toString());
hlp.setVisible(true);
} // actionHelp