Skip to content

Commit 8f2da90

Browse files
committed
changed filename pattern for image generation to restore generation of more than 1 image
1 parent f69ef5e commit 8f2da90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/rc2/R/rc2.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ rc2.pngdev <- function()
3636
{
3737
imgNum <- as.integer(get("imgNum", envir=rc2:::rc2cache))
3838
assign("imgNum", imgNum + 1, envir=rc2:::rc2cache)
39-
fname <- sprintf("rc2img%03d.png", imgNum, envir=rc2:::rc2cache)
39+
fname <- sprintf("rc2img%03d-%%d.png", imgNum, envir=rc2:::rc2cache)
4040
png(fname)
4141
rc2.errlog("rc2.imgstart=%s\n", fname)
4242
}

src/FileManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class RC2::FileManager::Impl : public ZeroInitializedClass {
7272
bool logInotify_;
7373

7474
Impl()
75-
: imgRegex_("rc2img(\\d+).png"), dbConnection_(new PGDBConnection())
75+
: imgRegex_("rc2img(\\d+)-(\\d+).png"), dbConnection_(new PGDBConnection())
7676
{
7777
logInotify_ = getenv("RC2_LOG_INOTIFY") != NULL;
7878
}

0 commit comments

Comments
 (0)