From 7719849aca0a97090ca4eecc552a619083b34e0d Mon Sep 17 00:00:00 2001
From: guy <guy@c028cbd2-c16b-5b4b-a496-9718f37d4682>
Date: Tue, 20 Oct 2009 15:13:53 +0000
Subject: [PATCH] Patch level         : 10.0 Files correlati     : pe0.exe
 Ricompilazione Demo : [ ] Commento            : Piccola cosmesi

git-svn-id: svn://10.65.10.50/trunk@19476 c028cbd2-c16b-5b4b-a496-9718f37d4682
---
 pe/pe0400.cpp | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/pe/pe0400.cpp b/pe/pe0400.cpp
index 2827a4994..0b94ab5cd 100755
--- a/pe/pe0400.cpp
+++ b/pe/pe0400.cpp
@@ -142,14 +142,14 @@ void TGestione_preventivo_msk:: on_idle()
 
 void TGestione_preventivo_msk::update_costi_ricavi(int nrow, bool update_sheet)
 {
-	TDocumento & d = doc();
+	TDocumento& d = doc();
 	const int rows = d.physical_rows();
 	TArray valori;
 	TArray costi;
   TSheet_field & sh = sfield(F_SHEET);
-	bool all = nrow < 0;
-
-	if (all)
+	
+  const bool all = nrow < 0;
+  if (all)
 		nrow = rows;
 	else
 		d[nrow].autosave(sh);
@@ -160,7 +160,7 @@ void TGestione_preventivo_msk::update_costi_ricavi(int nrow, bool update_sheet)
 		nrow++;
 	for (int i = nrow; i > 0; i--)
 	{
-		TRiga_documento & row = (TRiga_documento &)d[i];
+		TRiga_documento& row = d[i];
 		const int level = row.get_int(RDOC_LEVEL);
 
 		if (i == rows || level >= doc()[i + 1].get_int(RDOC_LEVEL))
@@ -602,7 +602,7 @@ bool TGestione_preventivo_msk::pe_new_revision_handler(TMask_field& f, KEY k)
 					const int err = app().get_relation()->lfile().read(mask.doc());
 					app().get_relation()->save_status();
           */
-          mask.enable(DLG_NEXTREC); // Mi assicuro che sia cceso il bottone Avanti
+          mask.enable(DLG_NEXTREC); // Mi assicuro che sia acceso il bottone Avanti
           mask.stop_run(K_NEXT);    // Passo al documento successivo appena creato
 				}
 			}
@@ -1046,7 +1046,7 @@ bool TGestione_preventivo_msk::new_revision(const char* codnum, long& ndoc) cons
 
 TGestione_preventivo_msk::TGestione_preventivo_msk(const char* tipodoc) : TDocumento_mask(tipodoc), _clipboard_row(-1)
 {
-  TConfig* configpe = new TConfig(CONFIG_DITTA, "pe");
+  //TConfig* configpe = new TConfig(CONFIG_DITTA, "pe"); // A cosa serve?
   sfield(F_SHEET).set_notify( ss_notify );
 	_rule = color_rules().add(new TColor_rule("Livello", "", _numexpr, COLOR_BLUE, FOCUS_COLOR));