Skip to content
Snippets Groups Projects
Commit 3695404e authored by Axel Naumann's avatar Axel Naumann
Browse files

Work-around for X11 sync problem when processing a macro in non-batch mode;

strlen fix for comment-consistes-of-identical-chars test


git-svn-id: http://root.cern.ch/svn/root/trunk@17827 27541ba8-7e3a-0410-8455-c3a389f83636
parent 0524a39a
No related branches found
No related tags found
No related merge requests found
......@@ -310,8 +310,13 @@ Bool_t TDocMacroDirective::GetResult(TString& result)
Info("HandleDirective_Macro", "Saving returned %s to file %s.",
objRet->IsA()->GetName(), filename.Data());
objRet->SaveAs(filename);
if (fNeedGraphics)
// to get X11 to sync :-( gVirtualX->Update()/Sync() don't do it
gSystem->Sleep(100);
gSystem->ProcessEvents();
objRet->SaveAs(filename);
gSystem->ProcessEvents(); // SaveAs triggers an event
if (objRet != gPad)
delete objRet;
......
// @(#)root/html:$Name: $:$Id: TDocParser.cxx,v 1.2 2007/02/08 05:50:25 brun Exp $
// @(#)root/html:$Name: $:$Id: TDocParser.cxx,v 1.3 2007/02/08 22:56:05 axel Exp $
// Author: Axel Naumann 2007-01-09
/*************************************************************************
......@@ -1716,7 +1716,7 @@ Bool_t TDocParser::ProcessComment()
TString lineAllOneChar(commentLine.Strip());
Ssiz_t len = lineAllOneChar.Length();
if (len > 0) {
if (len > 2) {
Char_t c = lineAllOneChar[len - 1];
if (c == lineAllOneChar[len - 2] && c == lineAllOneChar[len - 3]) {
TString lineAllOneCharStripped = lineAllOneChar.Strip(TString::kTrailing, c);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment