Xcode: Properly indent PBXFileReference and PBXBuildFile

Move indent factor change behind indention of start-of-line.
This commit is contained in:
Gregor Jasny
2015-04-17 21:50:04 +02:00
parent a723427b64
commit 5cb4c8380d
+1 -1
View File
@@ -91,13 +91,13 @@ void cmXCodeObject::Print(std::ostream& out)
{
std::string separator = "\n";
int indentFactor = 1;
cmXCodeObject::Indent(2*indentFactor, out);
if(this->Version > 15
&& (this->IsA == PBXFileReference || this->IsA == PBXBuildFile))
{
separator = " ";
indentFactor = 0;
}
cmXCodeObject::Indent(2*indentFactor, out);
out << this->Id << " ";
if(!(this->IsA == PBXGroup && this->Comment.size() == 0))
{