Commit fa1c8cb7 authored by Matthias Möller's avatar Matthias Möller

hannes: fix cppcheck warning

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19197 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7100ad3e
......@@ -1847,17 +1847,14 @@ me_merge( QMouseEvent* _event )
// both polylines open?
if (!first_pol->line()->is_closed() && !second_pol->line()->is_closed()) {
bool inv_first(false), inv_second(false);
// wrong ordering first Polyline?
if (first_idx == 0) {
inv_first = true;
first_idx = first_pol->line()->n_vertices() - 1;
}
// wrong ordering second Polyline?
if (second_idx == second_pol->line()->n_vertices() - 1) {
inv_second = true;
second_idx = 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment