call to non-existent constructor of G4VisAttributes corrected
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Aug 2000 12:10:36 +0000 (12:10 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Aug 2000 12:10:36 +0000 (12:10 +0000)
TGeant4/TG4VisManager.cxx

index d9359d8..816b2a5 100644 (file)
@@ -349,8 +349,11 @@ void TG4VisManager::SetG4Attribute(G4LogicalVolume* const lv,
  G4VisAttributes* newVisAttributes;
  if (!visAttributes)
    newVisAttributes    = new G4VisAttributes(false);
- else
-   newVisAttributes    = new G4VisAttributes(visAttributes);
+ else {
+   G4bool visibility = visAttributes->IsVisible();
+   G4Colour colour   = visAttributes->GetColour();
+   newVisAttributes = new G4VisAttributes(visibility, colour);
+ }
 
  const G4int kAbsVal = abs(val);       // the functionality is given by the abs value