~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/api/controllers/icontroladorpermisos.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2014-01-09 07:37:09 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20140109073709-rpuh5x3p3finvtze
Tags: 3.6.0.1228.33+dfsg-1
New upstream release [December 2013]

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
 
87
87
                                template <class T> T ObtenerValor() const {
88
88
                                        T v;
89
 
                                        std::istringstream is(m_Valor);
90
 
                                        is >> v;
 
89
                                        if (!m_Activo) {
 
90
                                                std::istringstream is(m_ValorPorDefecto);
 
91
                                                is >> v;
 
92
                                        }
 
93
                                        else {
 
94
                                                std::istringstream is(m_Valor);
 
95
                                                is >> v;
 
96
                                        }
 
97
                                        
91
98
                                        return v;
92
99
                                }
93
100