fix for zeros in editext

put some if statements in calcfrag