~ubuntu-branches/ubuntu/precise/fritzing/precise

« back to all changes in this revision

Viewing changes to src/autoroute/autorouter.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Georges Khaznadar
  • Date: 2011-08-26 10:11:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110826101105-w5hmn7zcf93ig5v6
Tags: 0.6.3b-1
* upgrapded to the newer upstream version
* parameters of the function GraphicsUtils::distanceFromLine in 
  src/svg/groundplanegenerator.cpp:767 are now declared as doubles,
  which Closes: #636441
* the new version fixes src/utils/folderutils.cpp, which
  Closes: #636061

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
********************************************************************
20
20
 
21
 
$Revision: 5217 $:
 
21
$Revision: 5375 $:
22
22
$Author: cohen@irascible.com $:
23
 
$Date: 2011-07-11 03:10:34 +0200 (Mon, 11 Jul 2011) $
 
23
$Date: 2011-08-08 21:38:25 +0200 (Mon, 08 Aug 2011) $
24
24
 
25
25
********************************************************************/
26
26
 
91
91
 
92
92
        m_sketchWidget->setClipEnds(traceWire, false);
93
93
        traceWire->setColorString(m_sketchWidget->traceColor(viewLayerSpec), 1.0);
94
 
        traceWire->setWireWidth(width, m_sketchWidget);
 
94
        traceWire->setWireWidth(width, m_sketchWidget, m_sketchWidget->getWireStrokeWidth(traceWire, width));
95
95
 
96
96
        return traceWire;
97
97
}
118
118
        for (int i = 0; i < connectorItems.count(); i++) { 
119
119
                ConnectorItem * fromConnectorItem = connectorItems[i];
120
120
                foreach (ConnectorItem * toConnectorItem, fromConnectorItem->connectedToItems()) {
121
 
                        TraceWire * traceWire = dynamic_cast<TraceWire *>(toConnectorItem->attachedTo());
 
121
                        TraceWire * traceWire = qobject_cast<TraceWire *>(toConnectorItem->attachedTo());
122
122
                        if (traceWire == NULL) continue;
123
123
                        if (visited.contains(traceWire)) continue;
124
124