Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 17496 → Rev 17497

/trunk/Scribus/scribus/scribusdoc.cpp
2894,6 → 2894,17
return -1;
}
 
int ScribusDoc::layerIDFromName(QString name)
{
ScLayers::iterator itend=Layers.end();
ScLayers::iterator it;
for (it = Layers.begin(); it != itend; ++it)
{
if (it->Name == name)
return it->ID;
}
return -1;
}
 
bool ScribusDoc::lowerLayer(const int layerID)
{
/trunk/Scribus/scribus/scribusdoc.h
459,6 → 459,7
* @brief Return the layer count
* @return Number of layers in doc
*/
int layerIDFromName(QString name);
int layerCount() const;
/**
* @brief Lower a layer