From b02fcc96a1d17ef2ad2df10391508951ecf28be4 Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 9 Mar 1998 10:26:56 +0000 Subject: [PATCH] cg2102.cpp Corretto assegnamento di 0.0 ad un TImporto cg2106.cpp Esportato in os_dep il test di esistenza di EasyCaz git-svn-id: svn://10.65.10.50/trunk@6324 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg2102.cpp | 2 +- cg/cg2106.cpp | 21 ++------------------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/cg/cg2102.cpp b/cg/cg2102.cpp index e1b8752f7..5d95815d7 100755 --- a/cg/cg2102.cpp +++ b/cg/cg2102.cpp @@ -1279,7 +1279,7 @@ bool TPrimanota_application::iva_notify(TSheet_field& iva, int r, KEY k) if (ri == 4) // Se non esiste il conto IVA indetraibile ... { // ... somma imponibile e imposta oldimp += oldiva; - oldiva = 0.0; + oldiva.set('D', 0.0); } } diff --git a/cg/cg2106.cpp b/cg/cg2106.cpp index 94f242414..19dabde7c 100755 --- a/cg/cg2106.cpp +++ b/cg/cg2106.cpp @@ -1,9 +1,9 @@ #include #include #include +#include #include #include -#include #include "cg2100.h" #include "cg2102.h" @@ -393,24 +393,7 @@ bool TPrimanota_application::easydoc_installed() // check autorization if (!has_module(AIAUT)) return FALSE; - - // where is EasyDoc installed? - GetPrivateProfileString("Easydoc", "Path", "\\EASYDOC", - _EasyDocPath.get_buffer(), _EasyDocPath.size(), - "EasyDoc.ini"); - // EasyDoc there isn't - if (_EasyDocPath.empty()) - return FALSE; - - // paste EasyDoc path - _EasyDocPath.add("EASYDOC.EXE"); - - // is EasyDoc present? - bool ok = fexist(_EasyDocPath); - if (!ok) - _EasyDocPath.cut(0); - - return ok; + return os_get_image_editor_path(_EasyDocPath); } // Il documento attuale e' connesso a easydoc?