Fix [ 1889924 ] Runtime change of VFormat don't allow to clear

This commit is contained in:
Carlos Ruiz 2008-02-08 23:46:04 +00:00
parent 9a9eeda926
commit bab71c39fe
1 changed files with 3 additions and 1 deletions

View File

@ -939,7 +939,9 @@ public class GridController extends CPanel
*/
if (comp instanceof VString){
VString vs = (VString)comp;
if(!vs.getVFormat().equals(mField.getVFormat()) && mField.getVFormat() != null){
if ((vs.getVFormat() != null && mField.getVFormat() == null)
|| (vs.getVFormat() == null && mField.getVFormat() != null)
|| (vs.getVFormat() != null && !vs.getVFormat().equals(mField.getVFormat()))) {
vs.setVFormat(mField.getVFormat());
}
}