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