diff options
| author | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-08-15 19:54:12 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-08-15 19:54:12 +0000 |
| commit | f624e4f24f6cc1a26552da5106f63ee4ae1fc57b (patch) | |
| tree | 6b24708dce82d010e37bdf3c6745d9a2a4abff18 /src/snap-candidate.h | |
| parent | Fix a crash and add more safety checks to catch NULL pointers (diff) | |
| download | inkscape-f624e4f24f6cc1a26552da5106f63ee4ae1fc57b.tar.gz inkscape-f624e4f24f6cc1a26552da5106f63ee4ae1fc57b.zip | |
2nd attempt at fixing the crash introduced in rev. #9692. This should nail it!
(bzr r9714)
Diffstat (limited to 'src/snap-candidate.h')
| -rw-r--r-- | src/snap-candidate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/snap-candidate.h b/src/snap-candidate.h index a0fc3290c..5c2834403 100644 --- a/src/snap-candidate.h +++ b/src/snap-candidate.h @@ -42,11 +42,11 @@ public: _target_bbox = Geom::OptRect(); } - SnapCandidatePoint(Geom::Point const &point, Inkscape::SnapSourceType const source, long const source_num = 0) + SnapCandidatePoint(Geom::Point const &point, Inkscape::SnapSourceType const source) : _point(point), _source_type(source), _target_type(Inkscape::SNAPTARGET_UNDEFINED), - _source_num(source_num) + _source_num(0) { _target_bbox = Geom::OptRect(); } |
