Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Xwt.Gtk/Xwt.GtkBackend/RichTextViewBackend.cs')
-rwxr-xr-xXwt.Gtk/Xwt.GtkBackend/RichTextViewBackend.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/RichTextViewBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/RichTextViewBackend.cs
index f85d6b79..88977cbd 100755
--- a/Xwt.Gtk/Xwt.GtkBackend/RichTextViewBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/RichTextViewBackend.cs
@@ -584,7 +584,10 @@ namespace Xwt.GtkBackend
{
if (!IsRealized)
return;
- var color = (Gdk.Color) StyleGetProperty ("link-color");
+ var objColor = StyleGetProperty ("link-color");
+ var color = Gdk.Color.Zero;
+ if (objColor != null)
+ color = (Gdk.Color) objColor;
if (color.Equals (Gdk.Color.Zero))
color = Toolkit.CurrentEngine.Defaults.FallbackLinkColor.ToGtkValue ();
if (Buffer != null)