summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-07-31 08:31:54 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-07-31 08:31:54 (GMT)
commit4321da432e3332e868abf07678f15d305fec2a4b (patch)
tree72cc36c121448dce907a4ccbc679bc3cad3c07f4 /Swiften/Serializer
parent5fafa602d859657d6616acdbb63dfcd501aed9a0 (diff)
downloadswift-contrib-4321da432e3332e868abf07678f15d305fec2a4b.zip
swift-contrib-4321da432e3332e868abf07678f15d305fec2a4b.tar.bz2
Upgraded update operation with ability to move elements
Diffstat (limited to 'Swiften/Serializer')
-rw-r--r--Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.cpp b/Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.cpp
index a4fd618..e1380b2 100644
--- a/Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.cpp
+++ b/Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.cpp
@@ -160,6 +160,7 @@ namespace Swift {
operationNode->setAttribute("pos", boost::lexical_cast<std::string>(updateOp->getPos()));
operationNode->setAttribute("id", updateOp->getID());
operationNode->setAttribute("parentid", updateOp->getParentID());
+ operationNode->setAttribute("newpos", boost::lexical_cast<std::string>(updateOp->getNewPos()));
} catch (boost::bad_lexical_cast&) {
}
updateOp->getElement()->accept(visitor);