# HG changeset patch
# User Miguel Ángel Bárcena Rodríguez <miguelangel@obraencurso.es>
# Date 1410454987 -7200
# Node ID f5ec50b625d15a3f933f97f5b685e3a5d8525c0f
# Parent  bea86fd8dfc69b7ad506a3072e98a7876c145433
Prevent subfield units remains empty

diff -r bea86fd8dfc6 -r f5ec50b625d1 Generic/fiebdc.py
--- a/Generic/fiebdc.py	Wed Sep 03 12:14:04 2014 +0200
+++ b/Generic/fiebdc.py	Thu Sep 11 19:03:07 2014 +0200
@@ -1142,6 +1142,10 @@
                 print utils.mapping(_("The measure values are not float "\
                       "numbers, code $1"), (_codes.encode("utf8"),))
                 return
+            # Prevent subfield units remains empty.
+            if (_units == u"" and (_length != u"" or _width != u""
+                                   or _height != u"")):
+                _units = 1.0
             _line_list.append([_linetype, _comment, _units,
                                _length, _width, _height, _formula])
             _line_index = _line_index + 6
diff -r bea86fd8dfc6 -r f5ec50b625d1 Generic/globalVars.py
--- a/Generic/globalVars.py	Wed Sep 03 12:14:04 2014 +0200
+++ b/Generic/globalVars.py	Thu Sep 11 19:03:07 2014 +0200
@@ -24,7 +24,7 @@
 import sys
 
 version = "pyArq Presupuestos v0.0.0"
-changeset = 19
+changeset = 20
 baseversion = 0
 
 # path: Paths where find the program files needed