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:
-rw-r--r--Xwt/Xwt.Drawing/Font.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Xwt/Xwt.Drawing/Font.cs b/Xwt/Xwt.Drawing/Font.cs
index 1a674f93..6a5c1d06 100644
--- a/Xwt/Xwt.Drawing/Font.cs
+++ b/Xwt/Xwt.Drawing/Font.cs
@@ -350,11 +350,11 @@ namespace Xwt.Drawing
public Font WithSettings (double size, FontStyle style, FontWeight weight, FontStretch stretch)
{
- var newHandler = handler.SetSize (Backend, size);
- newHandler = handler.SetStyle (Backend, style);
- newHandler = handler.SetWeight (Backend, weight);
- newHandler = handler.SetStretch (Backend, stretch);
- return new Font (newHandler, ToolkitEngine);
+ var backend = handler.SetSize (Backend, size);
+ backend = handler.SetStyle (backend, style);
+ backend = handler.SetWeight (backend, weight);
+ backend = handler.SetStretch (backend, stretch);
+ return new Font (backend, ToolkitEngine);
}
public override string ToString ()