[longomatch] Escape markup text when rendering text
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Escape markup text when rendering text
- Date: Wed, 24 Sep 2014 20:32:19 +0000 (UTC)
commit c4da2041869280fdcc70211865825b8a03d06724
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Sep 22 16:46:08 2014 +0200
Escape markup text when rendering text
LongoMatch.Drawing.Cairo/CairoBackend.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Drawing.Cairo/CairoBackend.cs b/LongoMatch.Drawing.Cairo/CairoBackend.cs
index 2bb9487..e28874f 100644
--- a/LongoMatch.Drawing.Cairo/CairoBackend.cs
+++ b/LongoMatch.Drawing.Cairo/CairoBackend.cs
@@ -357,7 +357,7 @@ namespace LongoMatch.Drawing.Cairo
layout.FontDescription.Style = fSlant;
layout.Width = Pango.Units.FromPixels ((int) width);
layout.Alignment = fAlignment;
- layout.SetMarkup (text);
+ layout.SetMarkup (GLib.Markup.EscapeText (text));
SetColor (StrokeColor);
Pango.CairoHelper.UpdateLayout (CContext, layout);
layout.GetPixelExtents (out inkRect, out logRect);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]