minor bugfix in LinkItem having to do with placement of indents
This commit is contained in:
		
							parent
							
								
									9d34cc35f0
								
							
						
					
					
						commit
						3da20de189
					
				@ -138,6 +138,8 @@ class LinkItem implements ComponentRender, ColorSelectors
 | 
			
		||||
 | 
			
		||||
  public void renderHere(Writer out, RenderData rdat) throws IOException
 | 
			
		||||
  {
 | 
			
		||||
    for (int i=0; i<indent; i++)
 | 
			
		||||
      out.write(" ");  // do indent
 | 
			
		||||
    if (enabled)
 | 
			
		||||
    { // write the opening <A> and <FONT> tags
 | 
			
		||||
      out.write("<A HREF=\"");
 | 
			
		||||
@ -156,8 +158,6 @@ class LinkItem implements ComponentRender, ColorSelectors
 | 
			
		||||
    } // end if
 | 
			
		||||
    else  // write the "disabled" indicator
 | 
			
		||||
      out.write("<FONT COLOR=\"" + rdat.getStdColor(CONTENT_DISABLED) + "\">");
 | 
			
		||||
    for (int i=0; i<indent; i++)
 | 
			
		||||
      out.write(" ");  // do indent
 | 
			
		||||
    contents.renderHere(out,rdat);
 | 
			
		||||
    out.write("</FONT>");
 | 
			
		||||
    if (enabled)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user