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() bool CanUseSettings()
{ {
Selection selection = Globals.ThisAddIn.Application.ActiveWindow.Selection; Commands.CanFormat();
return LastSelected != null && LastSelected.IsSelected &&
(
selection.Paragraphs.Count > 1
|| (selection.Text.Length > 1 && selection.Text.EndsWith("\r"))
);
} }
void DoAddSettings() void DoAddSettings()