Mercurial > hg > svgui
comparison view/View.cpp @ 1439:b22a4df37095 single-point
Update to using export IDs stored in XmlExportables
author | Chris Cannam |
---|---|
date | Thu, 28 Mar 2019 11:55:31 +0000 |
parents | 31499c3520ee |
children | 4b7fc925a5ce |
comparison
equal
deleted
inserted
replaced
1438:09d008b5c8f4 | 1439:b22a4df37095 |
---|---|
232 std::map<int, Layer *> sortedLayers; | 232 std::map<int, Layer *> sortedLayers; |
233 | 233 |
234 for (LayerList::const_iterator i = m_layerStack.begin(); | 234 for (LayerList::const_iterator i = m_layerStack.begin(); |
235 i != m_layerStack.end(); ++i) { | 235 i != m_layerStack.end(); ++i) { |
236 if ((*i)->needsTextLabelHeight()) { | 236 if ((*i)->needsTextLabelHeight()) { |
237 sortedLayers[getObjectExportId(*i)] = *i; | 237 sortedLayers[(*i)->getExportId()] = *i; |
238 } | 238 } |
239 } | 239 } |
240 | 240 |
241 int y = scalePixelSize(15) + paint.fontMetrics().ascent(); | 241 int y = scalePixelSize(15) + paint.fontMetrics().ascent(); |
242 | 242 |