proper_spacing_hidden_layer.patch

Mathieu Pellerin - nIRV, 2014-02-15 01:27 AM

Download (1.27 KB)

View differences:

src/core/composer/qgscomposerlegend.cpp
265 265
  if ( !layerItem ) return size;
266 266

  
267 267
  //Let the user omit the layer title item by having an empty layer title string
268
  if ( layerItem->text().isEmpty() ) return size;
268
  if ( layerItem->text().isEmpty() || layerItem->style() == QgsComposerLegendStyle::Hidden ) return size;
269 269

  
270 270
  double y = point.y();
271 271

  
......
805 805
    {
806 806
      Atom atom;
807 807

  
808
      if ( currentLegendItem->style() != QgsComposerLegendStyle::Hidden )
809
      {
808
      //if ( currentLegendItem->style() != QgsComposerLegendStyle::Hidden )
809
      //{
810 810
        Nucleon nucleon;
811 811
        nucleon.item = currentLegendItem;
812 812
        nucleon.size = drawLayerItemTitle( dynamic_cast<QgsComposerLayerItem*>( currentLegendItem ) );
813 813
        atom.nucleons.append( nucleon );
814 814
        atom.size.rwidth() = nucleon.size.width();
815 815
        atom.size.rheight() = nucleon.size.height();
816
      }
816
      //}
817 817

  
818 818
      QList<Atom> layerAtoms;
819 819