summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-07-17 09:59:17 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-07-17 09:59:17 (GMT)
commit1f8e319e256ac15438d63080d11a860dfa16431c (patch)
treed20cfb5a3f290020f4e6ffc9052b7894f933fb8d /Swiften/Parser
parentb2e11d7f32db65a6be001dfdf74b74f16f4c9ec3 (diff)
downloadswift-contrib-1f8e319e256ac15438d63080d11a860dfa16431c.zip
swift-contrib-1f8e319e256ac15438d63080d11a860dfa16431c.tar.bz2
Added handling of elements position updates
Diffstat (limited to 'Swiften/Parser')
-rw-r--r--Swiften/Parser/PayloadParsers/WhiteboardParser.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/Swiften/Parser/PayloadParsers/WhiteboardParser.cpp b/Swiften/Parser/PayloadParsers/WhiteboardParser.cpp
index 5d4aef1..7581115 100644
--- a/Swiften/Parser/PayloadParsers/WhiteboardParser.cpp
+++ b/Swiften/Parser/PayloadParsers/WhiteboardParser.cpp
@@ -52,21 +52,15 @@ namespace Swift {
int y1 = 0;
int x2 = 0;
int y2 = 0;
- int xShift = 0;
- int yShift = 0;
try {
x1 = boost::lexical_cast<int>(attributes.getAttributeValue("x1").get_value_or("0"));
y1 = boost::lexical_cast<int>(attributes.getAttributeValue("y1").get_value_or("0"));
x2 = boost::lexical_cast<int>(attributes.getAttributeValue("x2").get_value_or("0"));
y2 = boost::lexical_cast<int>(attributes.getAttributeValue("y2").get_value_or("0"));
- xShift = boost::lexical_cast<int>(attributes.getAttributeValue("xshift").get_value_or("0"));
- yShift = boost::lexical_cast<int>(attributes.getAttributeValue("yshift").get_value_or("0"));
} catch (boost::bad_lexical_cast&) {
}
WhiteboardLineElement::ref whiteboardElement = boost::make_shared<WhiteboardLineElement>(x1, y1, x2, y2);
- whiteboardElement->setShift(xShift, yShift);
-
Color color(attributes.getAttributeValue("stroke").get_value_or("#000000"));
color.setAlpha(opacityToAlpha(attributes.getAttributeValue("opacity").get_value_or("1")));
whiteboardElement->setColor(color);