From adaae1af9b96aaa2d980034d8a816510729a55a5 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Fri, 25 Jun 2010 08:37:07 +0000 Subject: [PATCH] * ./hurricane/src/hurricane: - Bug: In Instance::_postCreate, do not disable Go auto materialization if the instance is placed. --- hurricane/src/hurricane/Go.cpp | 4 +++- hurricane/src/hurricane/Instance.cpp | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/hurricane/src/hurricane/Go.cpp b/hurricane/src/hurricane/Go.cpp index d8dae671..ee1e4523 100644 --- a/hurricane/src/hurricane/Go.cpp +++ b/hurricane/src/hurricane/Go.cpp @@ -61,7 +61,9 @@ void Go::_postCreate() { Inherit::_postCreate(); - if (!autoMaterializationIsDisabled()) materialize(); // materialized after entire post creation + if (not autoMaterializationIsDisabled()) { + materialize(); + } // materialized after entire post creation } diff --git a/hurricane/src/hurricane/Instance.cpp b/hurricane/src/hurricane/Instance.cpp index bbc64dd6..32753f4f 100644 --- a/hurricane/src/hurricane/Instance.cpp +++ b/hurricane/src/hurricane/Instance.cpp @@ -378,9 +378,9 @@ void Instance::setPlacementStatus(const PlacementStatus& placementstatus) if (placementstatus != _placementStatus) { invalidate(true); - if (_placementStatus == PlacementStatus::UNPLACED) + if (_placementStatus == PlacementStatus::UNPLACED) { materialize (); - else if ( placementstatus == PlacementStatus::UNPLACED ) + } else if (placementstatus == PlacementStatus::UNPLACED) unmaterialize (); _placementStatus = placementstatus; @@ -457,7 +457,8 @@ void Instance::_postCreate() } bool autoMaterialization = not autoMaterializationIsDisabled(); - disableAutoMaterialization(); + if ( _placementStatus == PlacementStatus::UNPLACED ) + disableAutoMaterialization(); Inherit::_postCreate();