minor bugfix to plot slice xml parsing for mask elements

This commit is contained in:
Nick Horelik 2012-03-09 16:55:50 -05:00
parent be27d56c94
commit 79b0aae5ff

View file

@ -1260,11 +1260,11 @@ contains
end do
! Alter colors based on mask information
if (size(plot_(i) % mask_) /= 1) then
if (size(plot_(i) % mask_) > 1) then
message = "Mutliple masks" // &
" specified in plot " // trim(to_str(pl % id))
call fatal_error()
else
else if (.not. size(plot_(i) % mask_) == 0) then
do j=1,size(pl % colors)
if (.not. any(j .eq. plot_(i) % mask_(1) % components)) then
pl % colors(j) % rgb = plot_(i) % mask_(1) % background