Fix for bug #300809: Composer adds and deletes tags; bad image display;
HTML does not validate Modified CEditContainerElement::PrintEnd() to fix problem where we were not closing all CENTER tags. git-svn-id: svn://10.0.0.236/trunk@6443 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5e83276d6e
commit
3c85661c1e
@ -7026,11 +7026,11 @@ void CEditContainerElement::PrintEnd( CPrintState *pPrintState ){
|
||||
pPrintState->m_pOut->Printf( space );
|
||||
pPrintState->m_iCharPos += XP_STRLEN(space);
|
||||
}
|
||||
if( (GetAlignment() == ED_ALIGN_RIGHT && !IsEmpty() )&& (!pNextContainer || !CompareAlignments(pNextContainer->GetAlignment(),GetAlignment())) ) {
|
||||
if( (GetAlignment() == ED_ALIGN_RIGHT && !IsEmpty() )&& (!pNextContainer || pNextContainer->GetType() != P_NSDT || !CompareAlignments(pNextContainer->GetAlignment(),GetAlignment())) ) {
|
||||
pPrintState->m_pOut->Printf( "</DIV>");
|
||||
bNeedReturn = TRUE;
|
||||
}
|
||||
else if(( GetAlignment() == ED_ALIGN_ABSCENTER && !IsEmpty() ) && (!pNextContainer || !CompareAlignments(pNextContainer->GetAlignment(),GetAlignment())) ) {
|
||||
else if(( GetAlignment() == ED_ALIGN_ABSCENTER && !IsEmpty() ) && (!pNextContainer || pNextContainer->GetType() != P_NSDT || !CompareAlignments(pNextContainer->GetAlignment(),GetAlignment())) ) {
|
||||
pPrintState->m_pOut->Printf( "</CENTER>");
|
||||
bNeedReturn = TRUE;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user