This commit is contained in:
David Rose 2007-06-04 15:53:41 +00:00
parent 8196d44822
commit 8b83a2601a

View File

@ -102,7 +102,7 @@ remove_gsg(GraphicsStateGuardianBase *gsg) {
_gsgs.erase(gi);
if (_default_gsg == gsg) {
if (_gsgs.empty()) {
if (!_gsgs.empty()) {
_default_gsg = *_gsgs.begin();
} else {
_default_gsg = NULL;