Skip to content

Commit

Permalink
SVGPainter & SVGFormat: Enable black background again.
Browse files Browse the repository at this point in the history
  • Loading branch information
timvdm committed Apr 25, 2011
1 parent f57041a commit d944b97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/depict/svgpainter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ namespace OpenBabel
m_ofs << "font-family=\"" << m_fontFamily << "\" stroke=" << MakeRGB(m_Pencolor)
<< "stroke-width=\"" << m_PenWidth << "\" >\n";

//if(!m_withViewBox)//Background color for single molecule. Handled by outer svg when table.
// m_ofs << "<rect x=\"0%\" y=\"0%\" width=\"100%\" height=\"100%\" fill="
// << MakeRGB(m_Fillcolor) << " />\n";
if(!m_withViewBox)//Background color for single molecule. Handled by outer svg when table.
m_ofs << "<rect x=\"0%\" y=\"0%\" width=\"100%\" height=\"100%\" stroke-width=\"0\" fill="
<< MakeRGB(m_Fillcolor) << " />\n";
m_OrigBondcolor = m_Pencolor;
}

Expand Down
4 changes: 2 additions & 2 deletions src/formats/svgformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ bool SVGFormat::WriteMolecule(OBBase* pOb, OBConversion* pConv)

ofs << "<title>OBDepict</title>\n";
// Draw the background
//ofs << "<rect x=\"0\" y=\"0\" width=\"" << vbwidth << "\" height=\"" << vbheight
// << "\" fill=\"" << background << "\"/>\n";
ofs << "<rect x=\"0\" y=\"0\" width=\"" << vbwidth << "\" height=\"" << vbheight
<< "\" fill=\"" << background << "\"/>\n";
}
}

Expand Down

0 comments on commit d944b97

Please sign in to comment.