From 7a9e572e8a49909d2fea52dcf298c07dfe2bb0e9 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 9 Mar 2008 13:04:58 +0000 Subject: Linux Compile error if Color is compared against null. Documentation for System.Drawing.Color says it returns a Color with all Components as 0 if the String passed isn't a known color, so the null check has been commented out --- OpenSim/Region/Environment/Modules/VectorRenderModule.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Environment/Modules/VectorRenderModule.cs b/OpenSim/Region/Environment/Modules/VectorRenderModule.cs index 6b80eb1..19bcc88 100644 --- a/OpenSim/Region/Environment/Modules/VectorRenderModule.cs +++ b/OpenSim/Region/Environment/Modules/VectorRenderModule.cs @@ -229,12 +229,17 @@ namespace OpenSim.Region.Environment.Modules { nextLine = nextLine.Remove(0, 9); nextLine = nextLine.Trim(); + + // Linux Compile error if Color is compared against null + // Documentation for System.Drawing.Color says it returns + // a Color with all Components as 0 if the String passed + // isn't a known color Color newColour = Color.FromName(nextLine); - if (newColour != null) - { + //if (newColour != null) + //{ myBrush.Color = newColour; drawPen.Color = newColour; - } + //} } } } -- cgit v1.1