Fix CanFormat method of SettingsRepositoryViewModel.

This commit is contained in:
Daniel Kraus 2015-09-06 08:22:00 +02:00
parent 06aa271056
commit 687a5cce20

View File

@ -319,12 +319,7 @@ namespace zaaReloaded2.ViewModels
bool CanUseSettings()
{
Selection selection = Globals.ThisAddIn.Application.ActiveWindow.Selection;
return LastSelected != null && LastSelected.IsSelected &&
(
selection.Paragraphs.Count > 1
|| (selection.Text.Length > 1 && selection.Text.EndsWith("\r"))
);
Commands.CanFormat();
}
void DoAddSettings()