Explorar el Código

Fix a bug with edge line styling.

Akinori MUSHA hace 10 años
padre
commit
05dd52dc3d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/helpers/dot_helper.rb

+ 1 - 1
app/helpers/dot_helper.rb

@@ -138,7 +138,7 @@ module DotHelper
       def agent_edge(agent, receiver)
         edge(agent_id[agent],
              agent_id[receiver],
-             style: ('dashed' unless agent.can_control_other_agents? || !receiver.propagate_immediately?),
+             style: ('dashed' unless receiver.propagate_immediately?),
              label: (" #{agent.control_action}s " if agent.can_control_other_agents?),
              arrowhead: ('empty' if agent.can_control_other_agents?),
              color: (@disabled if agent.disabled? || receiver.disabled?))