Skip to content

Commit

Permalink
External Attribute - ZSampMargin minimum option bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waynegm committed Apr 3, 2016
1 parent 86d7470 commit e5c375e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/uiExternalAttrib/uiexternalattrib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -355,15 +355,15 @@ void uiExternalAttrib::doHelp( CallBacker* cb )

void uiExternalAttrib::doZmarginCheck( CallBacker* cb )
{
Interval<int> val = zmarginfld_->getIInterval();
if (extproc_ && extproc_->hasZMargin()) {
Interval<int> val = zmarginfld_->getIInterval();
Interval<int> minval = extproc_->z_minimum();
val.stop = (val.stop > minval.stop)? minval.stop:val.stop;

val.stop = (val.stop < minval.stop)? minval.stop:val.stop;
val.start = (val.start < -minval.start)? -minval.start:val.start;
zmarginfld_->setValue( val );
}
if (extproc_ && extproc_->zSymmetric()) {
val.stop = -val.start;
if (extproc_->zSymmetric())
val.stop = -val.start;

zmarginfld_->setValue( val );
}
}
Expand Down

0 comments on commit e5c375e

Please sign in to comment.