Fix CanFormat method of SettingsRepositoryViewModel.
This commit is contained in:
parent
06aa271056
commit
687a5cce20
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user