From 38ab74328236f0bddbfa28fdbe5e503a46fbd6c4 Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Thu, 22 Oct 1998 01:22:46 +0000 Subject: [PATCH] Fixed graying of Split cell command --- cmd/winfe/edview2.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/winfe/edview2.cpp b/cmd/winfe/edview2.cpp index 7492e5de76d6..a68a48f2275f 100644 --- a/cmd/winfe/edview2.cpp +++ b/cmd/winfe/edview2.cpp @@ -1394,7 +1394,10 @@ void CNetscapeEditView::OnRButtonDown(UINT uFlags, CPoint cpPoint) BOOL bLinkProps = FALSE; // In Embeded Editor (Ender), first item is Undo/Redo - if( GetEmbedded() ) + // but don't add item on initial page load.-- nothing to Undo + if( GetEmbedded() && + (EDT_GetRedoCommandID(pMWContext, 0 ) != CEDITCOMMAND_ID_NULL || + EDT_GetUndoCommandID(pMWContext, 0 ) != CEDITCOMMAND_ID_NULL) ) { cmPopup.AppendMenu(MF_ENABLED, ID_EDIT_UNDO, szLoadString(IDS_UNDO)); cmPopup.AppendMenu(MF_SEPARATOR); @@ -2876,7 +2879,7 @@ void CNetscapeEditView::OnUpdateMergeTableCells(CCmdUI* pCmdUI) void CNetscapeEditView::OnUpdateSplitTableCell(CCmdUI* pCmdUI) { - pCmdUI->Enable(CAN_INTERACT && EDT_CanSplitTableCell); + pCmdUI->Enable(CAN_INTERACT && EDT_CanSplitTableCell(GET_MWCONTEXT)); } void CNetscapeEditView::OnTableTextConvert()