From 47ade5a404a6afc981712e302c2faced85c9b208 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 23 Apr 2003 09:26:17 +0000 Subject: [PATCH] Patch level : 2.0 nopatch Files correlati : Ricompilazione Demo : [ ] Commento : Reso piu' accurata la conversione tra unita' di misura git-svn-id: svn://10.65.10.50/trunk@11055 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- mg/mglib02.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/mg/mglib02.cpp b/mg/mglib02.cpp index 7146691c1..d80ca4808 100755 --- a/mg/mglib02.cpp +++ b/mg/mglib02.cpp @@ -228,12 +228,6 @@ bool TArticolo::unlock() bool rv = false; if (codice().not_empty()) { - /* - static TLocalisamfile *anag=NULL; - if (anag==NULL) - anag= new TLocalisamfile(LF_ANAMAG); - rv=(anag->read(*this, _isequal,_unlock)==NOERR); - */ TLocalisamfile anag(LF_ANAMAG); rv = anag.read(*this, _isequal,_unlock) == NOERR; } @@ -265,7 +259,7 @@ bool TArticolo::lock_and_prompt(const char * cod) mess << "Il codice articolo '" << cod << "' non e' valido"; else if (err == _iskeynotfound) - mess << "Il record di anagrafica\ndell'articolo ''"<< cod << "'' non esiste."; + mess << "Il record di anagrafica\ndell'articolo '"<< cod << "' non esiste."; else mess << "Non riesco ad accedere al\nrecord di anagrafica dell'articolo '"<< cod << "' - errore " << err << "."; TTimed_skipbox bbox((const char *)mess,10); @@ -342,7 +336,7 @@ real TArticolo::convert_to_um(const real& v, const char* to_um, const char* from // Se l'unita' di destinazione NON e' quella base converti if (i1 > 1) { - const fraction fc1 = (um()[i1]).get(UMART_FC); + const fraction fc1( (um()[i1]).get_real(UMART_FC), UNO ); f /= fc1; }