fix for bug 5979

This commit is contained in:
jfrancis%netscape.com 1999-05-26 22:44:08 +00:00
parent 49ff440b55
commit f60a7f5872
2 changed files with 20 additions and 0 deletions

View File

@ -217,10 +217,20 @@ nsHTMLEditRules::WillDoAction(nsIDOMSelection *aSelection,
return nsTextEditRules::WillDoAction(aSelection, aInfo, aCancel);
}
NS_IMETHODIMP
nsHTMLEditRules::DidDoAction(nsIDOMSelection *aSelection,
nsRulesInfo *aInfo, nsresult aResult)
{
// my kingdom for dynamic cast
nsTextRulesInfo *info = NS_STATIC_CAST(nsTextRulesInfo*, aInfo);
switch (info->action)
{
case kInsertBreak:
return NS_OK;
}
return nsTextEditRules::DidDoAction(aSelection, aInfo, aResult);
}

View File

@ -217,10 +217,20 @@ nsHTMLEditRules::WillDoAction(nsIDOMSelection *aSelection,
return nsTextEditRules::WillDoAction(aSelection, aInfo, aCancel);
}
NS_IMETHODIMP
nsHTMLEditRules::DidDoAction(nsIDOMSelection *aSelection,
nsRulesInfo *aInfo, nsresult aResult)
{
// my kingdom for dynamic cast
nsTextRulesInfo *info = NS_STATIC_CAST(nsTextRulesInfo*, aInfo);
switch (info->action)
{
case kInsertBreak:
return NS_OK;
}
return nsTextEditRules::DidDoAction(aSelection, aInfo, aResult);
}