You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libetonyek/0001-add-missing-breaks.patch

37 lines
1.0 KiB

From 54c63c653deb070c49621bea8acbc18f76118238 Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Tue, 26 May 2015 16:56:56 +0200
Subject: [PATCH 1/2] add missing breaks
Change-Id: I6a6afd517e61aff89319348de5af3aa97093bd1d
---
src/lib/KEY2Parser.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/lib/KEY2Parser.cpp b/src/lib/KEY2Parser.cpp
index bb58efd..4ba70d2 100644
--- a/src/lib/KEY2Parser.cpp
+++ b/src/lib/KEY2Parser.cpp
@@ -261,8 +261,10 @@ void PointElement::attribute(const int name, const char *const value)
{
case IWORKToken::NS_URI_SFA | IWORKToken::x :
m_point.first = lexical_cast<double>(value);
+ break;
case IWORKToken::NS_URI_SFA | IWORKToken::y :
m_point.second = lexical_cast<double>(value);
+ break;
}
}
@@ -358,6 +360,7 @@ void PointPathElement::attribute(const int name, const char *const value)
ETONYEK_DEBUG_MSG(("unknown point path type: %s\n", value));
break;
}
+ break;
}
default :
KEY2XMLElementContextBase::attribute(name, value);
--
2.4.1