Corretta dichiarazione di fink
git-svn-id: svn://10.65.10.50/trunk@2806 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									e4eaa36b42
								
							
						
					
					
						commit
						1abadee271
					
				@ -3128,8 +3128,7 @@ void TForm::print_general(ostream& out) const
 | 
				
			|||||||
    out << "  INIZIO_POS " << _ipx << " " << _ipy << "\n";
 | 
					    out << "  INIZIO_POS " << _ipx << " " << _ipy << "\n";
 | 
				
			||||||
    out << "  FINE_POS " << _fpx << "\n";
 | 
					    out << "  FINE_POS " << _fpx << "\n";
 | 
				
			||||||
  }                                         
 | 
					  }                                         
 | 
				
			||||||
  char fn[12]; strncpy(fn, _fink, 11); fn[11] = '\0';
 | 
					  out << "  GRID \"" << _fink << "\"\n";
 | 
				
			||||||
  out << "  GRID \"" << (const char*)fn << "\"\n";
 | 
					 | 
				
			||||||
  out << "END\n" << endl;
 | 
					  out << "END\n" << endl;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -4068,9 +4067,7 @@ bool TForm::write_profile()
 | 
				
			|||||||
      form.put("IPX", _ipx);
 | 
					      form.put("IPX", _ipx);
 | 
				
			||||||
      form.put("IPY", _ipy);
 | 
					      form.put("IPY", _ipy);
 | 
				
			||||||
      form.put("FPX", _fpx);
 | 
					      form.put("FPX", _fpx);
 | 
				
			||||||
      TString16 fk(_fink);
 | 
					      form.put("GRID", _fink);
 | 
				
			||||||
      fk.cut(11);
 | 
					 | 
				
			||||||
      form.put("GRID", fk);
 | 
					 | 
				
			||||||
      form.rewrite();    
 | 
					      form.rewrite();    
 | 
				
			||||||
      _dirty=FALSE;
 | 
					      _dirty=FALSE;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -4181,9 +4178,7 @@ void TForm::read(
 | 
				
			|||||||
      forms.put("IPX", _ipx);
 | 
					      forms.put("IPX", _ipx);
 | 
				
			||||||
      forms.put("IPY", _ipy);
 | 
					      forms.put("IPY", _ipy);
 | 
				
			||||||
      forms.put("FPX", _fpx);
 | 
					      forms.put("FPX", _fpx);
 | 
				
			||||||
      TString16 fk(_fink);
 | 
					      forms.put("GRID", _fink);
 | 
				
			||||||
      fk.cut(11);
 | 
					 | 
				
			||||||
      forms.put("GRID",fk);
 | 
					 | 
				
			||||||
      forms.write();
 | 
					      forms.write();
 | 
				
			||||||
    }                
 | 
					    }                
 | 
				
			||||||
    else _desc = forms.get("DESC");
 | 
					    else _desc = forms.get("DESC");
 | 
				
			||||||
@ -4293,7 +4288,7 @@ void TForm::get_compulsory_specials()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void TForm::set_fincatura(const char* s)
 | 
					void TForm::set_fincatura(const char* s)
 | 
				
			||||||
{ 
 | 
					{ 
 | 
				
			||||||
  strncpy(_fink,s,sizeof(_fink)); 
 | 
					  _fink = s; _fink.cut(11);
 | 
				
			||||||
  printer().set_fincatura(_fink);
 | 
					  printer().set_fincatura(_fink);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -132,7 +132,7 @@ class TForm : public TObject
 | 
				
			|||||||
  // @cmember:(INTERNAL) Descrizione del formato
 | 
					  // @cmember:(INTERNAL) Descrizione del formato
 | 
				
			||||||
  TString _desc;
 | 
					  TString _desc;
 | 
				
			||||||
  // @cmember:(INTERNAL) Array di caratteri di fincatura
 | 
					  // @cmember:(INTERNAL) Array di caratteri di fincatura
 | 
				
			||||||
  char _fink[11];
 | 
					  TString16 _fink;
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  // @cmember:(INTERNAL) Handler di default della testata di stampa
 | 
					  // @cmember:(INTERNAL) Handler di default della testata di stampa
 | 
				
			||||||
  static void header_handler(TPrinter& p);
 | 
					  static void header_handler(TPrinter& p);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user