[tomboy] Make sure to use Value property on nullables, when assigning to Object type.



commit fbf6b8c22d5c243786c775c07ae7d5c08d1d21aa
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Mon May 18 06:56:57 2009 -0700

    Make sure to use Value property on nullables, when assigning to Object type.
---
 Tomboy/Addins/WebSyncService/Api/NoteInfo.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Tomboy/Addins/WebSyncService/Api/NoteInfo.cs b/Tomboy/Addins/WebSyncService/Api/NoteInfo.cs
index a8a452a..c8c0186 100644
--- a/Tomboy/Addins/WebSyncService/Api/NoteInfo.cs
+++ b/Tomboy/Addins/WebSyncService/Api/NoteInfo.cs
@@ -113,7 +113,7 @@ namespace Tomboy.WebSync.Api
 			if (NoteContent != null)
 				noteUpdateObj [NoteContentElementName] = NoteContent;
 			if (NoteContentVersion.HasValue)
-				noteUpdateObj [NoteContentVersionElementName] = NoteContentVersion;
+				noteUpdateObj [NoteContentVersionElementName] = NoteContentVersion.Value;
 
 			if (LastChangeDate.HasValue)
 				noteUpdateObj [LastChangeDateElementName] =
@@ -129,7 +129,7 @@ namespace Tomboy.WebSync.Api
 //			if (LastSyncRevision.HasValue)
 //				noteUpdateObj [LastSyncRevisionElementName] = LastSyncRevision;
 			if (OpenOnStartup.HasValue)
-				noteUpdateObj [OpenOnStartupElementName] = OpenOnStartup;
+				noteUpdateObj [OpenOnStartupElementName] = OpenOnStartup.Value;
 
 			if (Tags != null) {
 				Hyena.Json.JsonArray tagArray =



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]