This commit is contained in:
Kathy Ruffing 2010-07-23 15:55:59 +00:00
parent 3a49176ee3
commit 66e7690661
2 changed files with 2 additions and 1 deletions

View File

@ -231,6 +231,7 @@ namespace Volian.Controls.Library
string beforeRO = StaticStripRtfCommands(text.Substring(0, g.Index)); string beforeRO = StaticStripRtfCommands(text.Substring(0, g.Index));
string afterRO = StaticStripRtfCommands(text.Substring(g.Index + g.Length)); string afterRO = StaticStripRtfCommands(text.Substring(g.Index + g.Length));
string newvalue = DoROFormatFlags(g.ToString(), beforeRO, afterRO); string newvalue = DoROFormatFlags(g.ToString(), beforeRO, afterRO);
newvalue = newvalue.Replace(" ", @"\u160?");
if (g.ToString() != newvalue) if (g.ToString() != newvalue)
text = text.Substring(0, g.Index) + newvalue + text.Substring(g.Index + g.Length); text = text.Substring(0, g.Index) + newvalue + text.Substring(g.Index + g.Length);
} }

View File

@ -125,7 +125,7 @@ namespace Volian.Print.Library
set set
{ {
_MySection = value; _MySection = value;
MySectionTitle = (_MySection.DisplayNumber == null ? "" : _MySection.DisplayNumber + " - ") + _MySection.DisplayText; MySectionTitle = ((_MySection.DisplayNumber ?? "")=="" ? "" : _MySection.DisplayNumber + " - ") + _MySection.DisplayText;
MySvg = BuildSvg(_MySection); MySvg = BuildSvg(_MySection);
} }
} }