Bugs item #3153216, was opened at 2011-01-08 05:32
Message generated for change (Tracker Item Submitted) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=462816&aid=3153216&group_id=51305

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: last released version
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: fridrik ()
Assigned to: Nobody/Anonymous (nobody)
Summary: NumberAxis::SetLabelCount needs to call UpdateTickValues()

Initial Comment:
NumberAxis::SetLabelCount doesn't work unless UpdateTickValues() is called 
after updating the value of m_labelCount. In the released version the only way 
to do this (as far as I can see) is to call either NumberAxis::UpdateBounds or 
NumberAxis::SetFixedBounds after changing the label count. I fixed this problem 
for myself by editing numberaxis.h and changing the definition of the 
SetLabelCount function like this:

        void SetLabelCount(size_t labelCount)
        {
                if (m_labelCount != labelCount) {
                        m_labelCount = labelCount;
                        //-----------------------
                        //added this line to fix bug
                        UpdateTickValues();
                        //-----------------------
                        FireAxisChanged();
                }
        }


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=462816&aid=3153216&group_id=51305

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
wxCode-users mailing list
wxCode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxcode-users

Reply via email to