8b1b17cff8
"This is good, commit." espie@
28 lines
974 B
Plaintext
28 lines
974 B
Plaintext
$OpenBSD: patch-Source_cmDocumentation_cxx,v 1.4 2010/05/28 20:21:48 dcoppa Exp $
|
|
--- Source/cmDocumentation.cxx.orig Tue Apr 6 16:45:33 2010
|
|
+++ Source/cmDocumentation.cxx Mon May 3 10:55:11 2010
|
|
@@ -1177,11 +1177,18 @@ bool cmDocumentation::PrintDocumentationSingleModule(s
|
|
this->CurrentArgument.c_str(),
|
|
*this->AllSections["Modules"]))
|
|
{
|
|
- this->PrintDocumentationCommand
|
|
- (os, this->AllSections["Modules"]->GetEntries()[0]);
|
|
- os << "\n Defined in: ";
|
|
- os << moduleName << "\n";
|
|
- return true;
|
|
+ if(this->AllSections["Modules"]->GetEntries().size())
|
|
+ {
|
|
+ this->PrintDocumentationCommand
|
|
+ (os, this->AllSections["Modules"]->GetEntries()[0]);
|
|
+ os << "\n Defined in: ";
|
|
+ os << moduleName << "\n";
|
|
+ return true;
|
|
+ }
|
|
+ else
|
|
+ {
|
|
+ return false;
|
|
+ }
|
|
}
|
|
}
|
|
|