Commit 60a86853 authored by Bernhard Stegmaier's avatar Bernhard Stegmaier Committed by Maciej Suminski
Browse files

Removed a few warnings.

parent afbe21fe
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -35,6 +35,10 @@

using namespace KIGFX;


const float CAIRO_GAL::LAYER_ALPHA = 0.8;


CAIRO_GAL::CAIRO_GAL( wxWindow* aParent, wxEvtHandler* aMouseListener,
        wxEvtHandler* aPaintListener, const wxString& aName ) :
    wxWindow( aParent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxEXPAND, aName )
+4 −0
Original line number Diff line number Diff line
@@ -31,6 +31,10 @@

using namespace KIGFX;


const double GAL::METRIC_UNIT_LENGTH = 1e9;


GAL::GAL() :
    strokeFont( this )
{
+1 −1
Original line number Diff line number Diff line
@@ -893,7 +893,7 @@ void VIEW::updateItemGeometry( VIEW_ITEM* aItem, int aLayer )
    group = m_gal->BeginGroup();
    aItem->setGroup( aLayer, group );

    if( !m_painter->Draw( static_cast<EDA_ITEM*>( aItem ), aLayer ) );
    if( !m_painter->Draw( static_cast<EDA_ITEM*>( aItem ), aLayer ) )
        aItem->ViewDraw( aLayer, m_gal ); // Alternative drawing method

    m_gal->EndGroup();
+1 −1
Original line number Diff line number Diff line
@@ -389,7 +389,7 @@ private:
    static const cairo_format_t GAL_FORMAT = CAIRO_FORMAT_RGB24;

    ///> Opacity of a single layer
    static const float LAYER_ALPHA = 0.8;
    static const float LAYER_ALPHA;
};
} // namespace KIGFX

+1 −1
Original line number Diff line number Diff line
@@ -820,7 +820,7 @@ public:
    /// Depth level on which the grid is drawn
    static const int GRID_DEPTH = 1024;

    static const double METRIC_UNIT_LENGTH = 1e9;
    static const double METRIC_UNIT_LENGTH;

protected:
    std::stack<double> depthStack;             ///< Stored depth values
Loading