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

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2013-05-18 08:13:28 +0400
committerMike Krüger <mkrueger@xamarin.com>2013-05-18 08:13:28 +0400
commit9b865b9bd6c72cd8657e979952b52b637955fe5f (patch)
treedf771f5ec598b01049dec18f0eea1ffd82e2a89d /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Fonts
parent093da1c45b7b11f00e78f2d3f9098c8c94e05371 (diff)
[Ide] FontDescription now falls back to default in empty string case
as well.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Fonts')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Fonts/FontDescriptionCodon.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Fonts/FontDescriptionCodon.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Fonts/FontDescriptionCodon.cs
index 69c6dcbb47..8d8e079790 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Fonts/FontDescriptionCodon.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Fonts/FontDescriptionCodon.cs
@@ -59,9 +59,9 @@ namespace MonoDevelop.Ide.Fonts
public string FontDescription {
get {
if (MonoDevelop.Core.Platform.IsWindows)
- return fontDescriptionWindows ?? fontDescription;
+ return string.IsNullOrEmpty (fontDescriptionWindows) ? fontDescription : fontDescriptionWindows;
if (MonoDevelop.Core.Platform.IsMac)
- return fontDescriptionMac ?? fontDescription;
+ return string.IsNullOrEmpty (fontDescriptionMac) ? fontDescription : fontDescriptionMac;
return fontDescription;
}
}