From ea4448d9954dac206d0ffba12cecc9b2380e23ab Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 2 May 2009 13:23:08 +0000 Subject: [PATCH] Fixed ugly cluster of problems with Drawing, Painting, RichValue serialization, ValueArray... git-svn-id: svn://ultimatepp.org/upp/trunk@1118 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Uuid.cpp | 4 ++++ uppsrc/Core/Value.cpp | 16 ++++++---------- uppsrc/Draw/Draw.cpp | 5 +++++ uppsrc/Draw/Draw.h | 16 +++++++++------- uppsrc/Draw/Drawing.cpp | 12 +++++++++++- uppsrc/Draw/Image.cpp | 4 ++++ 6 files changed, 39 insertions(+), 18 deletions(-) diff --git a/uppsrc/Core/Uuid.cpp b/uppsrc/Core/Uuid.cpp index bb7e1bab8..f5f173693 100644 --- a/uppsrc/Core/Uuid.cpp +++ b/uppsrc/Core/Uuid.cpp @@ -4,6 +4,10 @@ NAMESPACE_UPP //#BLITZ_APPROVE +INITBLOCK { + RichValue::Register(); +} + void Uuid::Serialize(Stream& s) { int version = 0; s / version % a % b %c % d; diff --git a/uppsrc/Core/Value.cpp b/uppsrc/Core/Value.cpp index bdb11db68..31d40d6ca 100644 --- a/uppsrc/Core/Value.cpp +++ b/uppsrc/Core/Value.cpp @@ -137,6 +137,8 @@ static void sRegisterStd() RichValue::Register(); RichValue::Register(); RichValue