~ubuntu-branches/ubuntu/trusty/fritzing/trusty-proposed

« back to all changes in this revision

Viewing changes to src/connectors/svgidlayer.cpp

  • Committer: Package Import Robot
  • Author(s): Enrique Hernández Bello
  • Date: 2012-11-11 21:38:56 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20121111213856-0825ywdrtdcshl91
Tags: 0.7.10b-1
* New upstream version. Closes: #661495, #692998
* Removed useless patches.
* Removed SetupAPI.lib from sourceless files.
* Skip dfsg tarball creation if there are no sourceless files.
* Added libqt4-sql-sqlite to dependencies. Thanks to Tom Hummel <tom@bluespice.org>.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
********************************************************************
20
20
 
21
 
$Revision: 5309 $:
 
21
$Revision: 6409 $:
22
22
$Author: cohen@irascible.com $:
23
 
$Date: 2011-07-30 21:17:22 +0200 (Sat, 30 Jul 2011) $
 
23
$Date: 2012-09-13 05:05:28 +0200 (Thu, 13 Sep 2012) $
24
24
 
25
25
********************************************************************/
26
26
 
27
27
#include "svgidlayer.h"
28
28
 
29
 
SvgIdLayer::SvgIdLayer() {
 
29
SvgIdLayer::SvgIdLayer(ViewLayer::ViewIdentifier viewIdentifier) {
 
30
    m_viewIdentifier = viewIdentifier;
30
31
        m_processed = m_hybrid = false;
31
32
        m_radius = m_strokeWidth = 0;
32
33
}
33
34
 
34
35
SvgIdLayer * SvgIdLayer::copyLayer() {
35
 
        SvgIdLayer * toSvgIdLayer = new SvgIdLayer;
 
36
        SvgIdLayer * toSvgIdLayer = new SvgIdLayer(m_viewIdentifier);
36
37
        *toSvgIdLayer = *this;
37
38
        return toSvgIdLayer;
38
39
}