summaryrefslogtreecommitdiff
path: root/psprint/source
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2002-11-05 13:07:08 +0000
committerPhilipp Lohmann <pl@openoffice.org>2002-11-05 13:07:08 +0000
commitd0f5e938f23874ced006bba50ab2e82001f43b94 (patch)
tree1914965aa46d322ce561e00ba12a1c82b8d1f507 /psprint/source
parent0f8d9f52ad7a331696e9ec93e154e45bb0b4aa4f (diff)
#104127# update alternate file list in writePrinterConfig
Diffstat (limited to 'psprint/source')
-rw-r--r--psprint/source/printer/printerinfomanager.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/psprint/source/printer/printerinfomanager.cxx b/psprint/source/printer/printerinfomanager.cxx
index de3d5df28884..059986b4e1be 100644
--- a/psprint/source/printer/printerinfomanager.cxx
+++ b/psprint/source/printer/printerinfomanager.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: printerinfomanager.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: pl $ $Date: 2002-10-31 17:14:45 $
+ * last change: $Author: pl $ $Date: 2002-11-05 14:07:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -610,6 +610,12 @@ bool PrinterInfoManager::writePrinterConfig()
else
{
rofiles[ it->second.m_aFile ] = 1;
+ // update alternate file list
+ // the remove operation ensures singularity of each alternate
+ it->second.m_aAlternateFiles.remove( it->second.m_aFile );
+ it->second.m_aAlternateFiles.remove( files.begin()->first );
+ it->second.m_aAlternateFiles.push_front( it->second.m_aFile );
+ // update file
it->second.m_aFile = files.begin()->first;
}
}