From 58d820ce194de4e78e4718f7cee2159ee0a64925 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 15 Sep 2016 17:53:27 +0300 Subject: [PATCH] Add lexical conversion for the centering constraints --- source/layout.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/layout.cpp b/source/layout.cpp index ce9c8dc..1cf35c7 100644 --- a/source/layout.cpp +++ b/source/layout.cpp @@ -627,10 +627,14 @@ void operator>>(const LexicalConverter &conv, Layout::ConstraintType &ctype) ctype = Layout::FAR_LEFT_OF; else if(str=="ALIGN_TOP") ctype = Layout::ALIGN_TOP; + else if(str=="ALIGN_VCENTER") + ctype = Layout::ALIGN_VCENTER; else if(str=="ALIGN_BOTTOM") ctype = Layout::ALIGN_BOTTOM; else if(str=="ALIGN_RIGHT") ctype = Layout::ALIGN_RIGHT; + else if(str=="ALIGN_HCENTER") + ctype = Layout::ALIGN_HCENTER; else if(str=="ALIGN_LEFT") ctype = Layout::ALIGN_LEFT; else if(str=="COPY_WIDTH") -- 2.45.2